Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
46905e26
Commit
46905e26
authored
Oct 30, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
Rev: src/lsh.c:1.19 Rev: src/lshd.c:1.16
parent
261d4fba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
src/lsh.c
src/lsh.c
+2
-2
src/lshd.c
src/lshd.c
+14
-16
No files found.
src/lsh.c
View file @
46905e26
...
...
@@ -199,8 +199,8 @@ int main(int argc, char **argv)
(
make_alist
(
0
,
-
1
),
make_alist
(
0
,
-
1
),
make_client_startup
(
io_read
(
&
backend
,
in
,
NULL
,
NULL
),
io_write
(
&
backend
,
out
,
BLOCK_SIZE
,
NULL
),
io_write
(
&
backend
,
err
,
BLOCK_SIZE
,
NULL
),
&
io_write
(
&
backend
,
out
,
BLOCK_SIZE
,
NULL
)
->
buffer
->
super
,
&
io_write
(
&
backend
,
err
,
BLOCK_SIZE
,
NULL
)
->
buffer
->
super
,
ATOM_SHELL
,
ssh_format
(
""
)));
kexinit_handler
=
make_kexinit_handler
...
...
src/lshd.c
View file @
46905e26
...
...
@@ -41,6 +41,7 @@
#include "randomness.h"
#include "server.h"
#include "server_keyexchange.h"
#include "ssh.h"
#include "userauth.h"
#include "werror.h"
#include "xalloc.h"
...
...
@@ -134,7 +135,6 @@ int main(int argc, char **argv)
struct
alist
*
algorithms
;
struct
make_kexinit
*
make_kexinit
;
struct
packet_handler
*
kexinit_handler
;
struct
ssh_service
*
service
;
/* For filtering messages. Could perhaps also be used when converting
* strings to and from UTF8. */
...
...
@@ -188,24 +188,22 @@ int main(int argc, char **argv)
ATOM_SSH_DSS
,
make_dss_algorithm
(
r
),
-
1
);
make_kexinit
=
make_test_kexinit
(
r
);
service
=
make_connection_service
(
make_alist
(
0
,
-
1
),
/* make_alist(1, ATOM_SESSION, make_session_service(...)) */
make_alist
(
0
,
-
1
));
kexinit_handler
=
make_kexinit_handler
(
CONNECTION_SERVER
,
make_kexinit
,
algorithms
,
make_meta_service
(
make_alist
(
1
,
ATOM_SSH_USERAUTH
,
make_userauth_service
(
make_alist
(
1
,
ATOM_PASSWORD
,
make_unix_userauth
(
make_unix_login
(),
make_alist
(
1
,
ATOM_SSH_CONNECTION
,
service
)))))));
make_meta_service
(
make_alist
(
1
,
ATOM_SSH_USERAUTH
,
make_userauth_service
(
make_alist
(
1
,
ATOM_PASSWORD
,
make_unix_userauth
(
make_alist
(
1
,
ATOM_SSH_CONNECTION
,
make_server_session_service
(
make_alist
(
0
,
-
1
),
make_alist
(
1
,
ATOM_SHELL
,
make_shell_handler
(
&
backend
))))))))));
if
(
!
io_listen
(
&
backend
,
&
local
,
make_server_callback
(
&
backend
,
"lsh - a free ssh"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment