diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2016-05-24 04:43:45 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2016-06-06 11:25:38 +1000 |
commit | 8c02e3639acefe1e447e293dbe23a0917abd3734 (patch) | |
tree | d8684e7c071c74449b9136ead1ef56623d9941f1 /sshconnect2.c | |
parent | 7ec4946fb686813eb5f8c57397e465f5485159f4 (diff) |
upstream commit
KNF compression proposal and simplify the client side a
little. ok djm@
Upstream-ID: aa814b694efe9e5af8a26e4c80a05526ae6d6605
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index c0814e5bc..3d3c7bf42 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect2.c,v 1.244 2016/05/23 23:30:50 djm Exp $ */ | 1 | /* $OpenBSD: sshconnect2.c,v 1.245 2016/05/24 04:43:45 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2008 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2008 Damien Miller. All rights reserved. |
@@ -171,13 +171,9 @@ ssh_kex2(char *host, struct sockaddr *hostaddr, u_short port) | |||
171 | compat_cipher_proposal(options.ciphers); | 171 | compat_cipher_proposal(options.ciphers); |
172 | myproposal[PROPOSAL_ENC_ALGS_STOC] = | 172 | myproposal[PROPOSAL_ENC_ALGS_STOC] = |
173 | compat_cipher_proposal(options.ciphers); | 173 | compat_cipher_proposal(options.ciphers); |
174 | if (options.compression) { | 174 | myproposal[PROPOSAL_COMP_ALGS_CTOS] = |
175 | myproposal[PROPOSAL_COMP_ALGS_CTOS] = | 175 | myproposal[PROPOSAL_COMP_ALGS_STOC] = options.compression ? |
176 | myproposal[PROPOSAL_COMP_ALGS_STOC] = "zlib@openssh.com,zlib,none"; | 176 | "zlib@openssh.com,zlib,none" : "none,zlib@openssh.com,zlib"; |
177 | } else { | ||
178 | myproposal[PROPOSAL_COMP_ALGS_CTOS] = | ||
179 | myproposal[PROPOSAL_COMP_ALGS_STOC] = "none,zlib@openssh.com,zlib"; | ||
180 | } | ||
181 | myproposal[PROPOSAL_MAC_ALGS_CTOS] = | 177 | myproposal[PROPOSAL_MAC_ALGS_CTOS] = |
182 | myproposal[PROPOSAL_MAC_ALGS_STOC] = options.macs; | 178 | myproposal[PROPOSAL_MAC_ALGS_STOC] = options.macs; |
183 | if (options.hostkeyalgorithms != NULL) { | 179 | if (options.hostkeyalgorithms != NULL) { |