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
d9fe6388
Commit
d9fe6388
authored
Dec 27, 1998
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lsh.c (main): Zlib support.
* lshd.c (main): Zlib support. Rev: src/lsh.c:1.33 Rev: src/lshd.c:1.28
parent
66c43cf7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
src/lsh.c
src/lsh.c
+12
-1
src/lshd.c
src/lshd.c
+13
-1
No files found.
src/lsh.c
View file @
d9fe6388
...
...
@@ -49,6 +49,7 @@
#include "userauth.h"
#include "werror.h"
#include "xalloc.h"
#include "compress.h"
#include "lsh.c.x"
...
...
@@ -175,7 +176,17 @@ int main(int argc, char **argv)
ATOM_HMAC_SHA1
,
make_hmac_algorithm
(
&
sha_algorithm
),
ATOM_HMAC_MD5
,
make_hmac_algorithm
(
&
md5_algorithm
),
ATOM_DIFFIE_HELLMAN_GROUP1_SHA1
,
kex
,
ATOM_SSH_DSS
,
make_dss_algorithm
(
r
),
-
1
);
ATOM_SSH_DSS
,
make_dss_algorithm
(
r
),
-
1
);
#if WITH_ZLIB
ALIST_SET
(
algorithms
,
ATOM_ZLIB
,
make_zlib
());
#endif
#if WITH_IDEA
ALIST_SET
(
algorithms
,
ATOM_IDEA_CBC
,
crypto_cbc
(
&
idea_algorithm
));
#endif
make_kexinit
=
make_test_kexinit
(
r
);
/* Dup stdio file descriptors, so that they can be closed without
...
...
src/lshd.c
View file @
d9fe6388
...
...
@@ -46,6 +46,7 @@
#include "userauth.h"
#include "werror.h"
#include "xalloc.h"
#include "compress.h"
/* Block size for stdout and stderr buffers */
#define BLOCK_SIZE 32768
...
...
@@ -182,6 +183,7 @@ int main(int argc, char **argv)
dh
=
make_dh1
(
r
);
init_host_key
(
r
);
/* Initializes public_key and secret_key */
kex
=
make_dh_server
(
dh
,
public_key
,
secret_key
);
algorithms
=
make_alist
(
7
,
ATOM_ARCFOUR
,
&
crypto_arcfour_algorithm
,
ATOM_BLOWFISH_CBC
,
crypto_cbc
(
make_blowfish
()),
...
...
@@ -189,7 +191,17 @@ int main(int argc, char **argv)
ATOM_HMAC_SHA1
,
make_hmac_algorithm
(
&
sha_algorithm
),
ATOM_HMAC_MD5
,
make_hmac_algorithm
(
&
md5_algorithm
),
ATOM_DIFFIE_HELLMAN_GROUP1_SHA1
,
kex
,
ATOM_SSH_DSS
,
make_dss_algorithm
(
r
),
-
1
);
ATOM_SSH_DSS
,
make_dss_algorithm
(
r
),
-
1
);
#if WITH_ZLIB
ALIST_SET
(
algorithms
,
ATOM_ZLIB
,
make_zlib
());
#endif
#if WITH_IDEA
ALIST_SET
(
algorithms
,
ATOM_IDEA_CBC
,
crypto_cbc
(
&
idea_algorithm
));
#endif
make_kexinit
=
make_test_kexinit
(
r
);
kexinit_handler
=
make_kexinit_handler
...
...
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