diff options
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index 031f719ba..9681ca2d4 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: sshconnect2.c,v 1.46 2001/02/10 12:09:21 markus Exp $"); | 26 | RCSID("$OpenBSD: sshconnect2.c,v 1.47 2001/02/11 12:59:25 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/bn.h> | 28 | #include <openssl/bn.h> |
29 | #include <openssl/md5.h> | 29 | #include <openssl/md5.h> |
@@ -84,12 +84,16 @@ ssh_kex2(char *host, struct sockaddr *hostaddr) | |||
84 | myproposal[PROPOSAL_ENC_ALGS_STOC] = options.ciphers; | 84 | myproposal[PROPOSAL_ENC_ALGS_STOC] = options.ciphers; |
85 | } | 85 | } |
86 | if (options.compression) { | 86 | if (options.compression) { |
87 | myproposal[PROPOSAL_COMP_ALGS_CTOS] = "zlib"; | 87 | myproposal[PROPOSAL_COMP_ALGS_CTOS] = |
88 | myproposal[PROPOSAL_COMP_ALGS_STOC] = "zlib"; | 88 | myproposal[PROPOSAL_COMP_ALGS_STOC] = "zlib"; |
89 | } else { | 89 | } else { |
90 | myproposal[PROPOSAL_COMP_ALGS_CTOS] = "none"; | 90 | myproposal[PROPOSAL_COMP_ALGS_CTOS] = |
91 | myproposal[PROPOSAL_COMP_ALGS_STOC] = "none"; | 91 | myproposal[PROPOSAL_COMP_ALGS_STOC] = "none"; |
92 | } | 92 | } |
93 | if (options.macs != NULL) { | ||
94 | myproposal[PROPOSAL_MAC_ALGS_CTOS] = | ||
95 | myproposal[PROPOSAL_MAC_ALGS_STOC] = options.macs; | ||
96 | } | ||
93 | 97 | ||
94 | /* buffers with raw kexinit messages */ | 98 | /* buffers with raw kexinit messages */ |
95 | server_kexinit = xmalloc(sizeof(*server_kexinit)); | 99 | server_kexinit = xmalloc(sizeof(*server_kexinit)); |