summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kex.c4
-rw-r--r--kex.h5
-rw-r--r--monitor_wrap.c4
-rw-r--r--packet.c7
-rw-r--r--sshconnect2.c4
5 files changed, 9 insertions, 15 deletions
diff --git a/kex.c b/kex.c
index 2fd052e96..0c444e186 100644
--- a/kex.c
+++ b/kex.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.c,v 1.138 2018/07/04 13:49:31 djm Exp $ */ 1/* $OpenBSD: kex.c,v 1.139 2018/07/06 09:05:01 sf Exp $ */
2/* 2/*
3 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -742,8 +742,6 @@ choose_comp(struct sshcomp *comp, char *client, char *server)
742 return SSH_ERR_NO_COMPRESS_ALG_MATCH; 742 return SSH_ERR_NO_COMPRESS_ALG_MATCH;
743 if (strcmp(name, "zlib@openssh.com") == 0) { 743 if (strcmp(name, "zlib@openssh.com") == 0) {
744 comp->type = COMP_DELAYED; 744 comp->type = COMP_DELAYED;
745 } else if (strcmp(name, "zlib") == 0) {
746 comp->type = COMP_ZLIB;
747 } else if (strcmp(name, "none") == 0) { 745 } else if (strcmp(name, "none") == 0) {
748 comp->type = COMP_NONE; 746 comp->type = COMP_NONE;
749 } else { 747 } else {
diff --git a/kex.h b/kex.h
index 3ffae2df0..676c32abd 100644
--- a/kex.h
+++ b/kex.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.h,v 1.85 2018/07/04 13:49:31 djm Exp $ */ 1/* $OpenBSD: kex.h,v 1.86 2018/07/06 09:05:01 sf Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
@@ -64,8 +64,7 @@
64#define KEX_CURVE25519_SHA256_OLD "curve25519-sha256@libssh.org" 64#define KEX_CURVE25519_SHA256_OLD "curve25519-sha256@libssh.org"
65 65
66#define COMP_NONE 0 66#define COMP_NONE 0
67#define COMP_ZLIB 1 67#define COMP_DELAYED 1
68#define COMP_DELAYED 2
69 68
70#define CURVE25519_SIZE 32 69#define CURVE25519_SIZE 32
71 70
diff --git a/monitor_wrap.c b/monitor_wrap.c
index b1f489f79..e280fd2ad 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor_wrap.c,v 1.99 2018/03/03 03:15:51 djm Exp $ */ 1/* $OpenBSD: monitor_wrap.c,v 1.100 2018/07/06 09:05:01 sf Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -84,8 +84,6 @@
84#include "ssherr.h" 84#include "ssherr.h"
85 85
86/* Imports */ 86/* Imports */
87extern z_stream incoming_stream;
88extern z_stream outgoing_stream;
89extern struct monitor *pmonitor; 87extern struct monitor *pmonitor;
90extern Buffer loginmsg; 88extern Buffer loginmsg;
91extern ServerOptions options; 89extern ServerOptions options;
diff --git a/packet.c b/packet.c
index 4da9f52b6..a39a340f3 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.272 2018/07/06 09:03:02 sf Exp $ */ 1/* $OpenBSD: packet.c,v 1.273 2018/07/06 09:05:01 sf Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -879,9 +879,8 @@ ssh_set_newkeys(struct ssh *ssh, int mode)
879 /* explicit_bzero(enc->iv, enc->block_size); 879 /* explicit_bzero(enc->iv, enc->block_size);
880 explicit_bzero(enc->key, enc->key_len); 880 explicit_bzero(enc->key, enc->key_len);
881 explicit_bzero(mac->key, mac->key_len); */ 881 explicit_bzero(mac->key, mac->key_len); */
882 if ((comp->type == COMP_ZLIB || 882 if (comp->type == COMP_DELAYED && state->after_authentication
883 (comp->type == COMP_DELAYED && 883 && comp->enabled == 0) {
884 state->after_authentication)) && comp->enabled == 0) {
885 if ((r = ssh_packet_init_compression(ssh)) < 0) 884 if ((r = ssh_packet_init_compression(ssh)) < 0)
886 return r; 885 return r;
887 if (mode == MODE_OUT) { 886 if (mode == MODE_OUT) {
diff --git a/sshconnect2.c b/sshconnect2.c
index f3ccd53a9..183484e08 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshconnect2.c,v 1.275 2018/07/04 13:49:31 djm Exp $ */ 1/* $OpenBSD: sshconnect2.c,v 1.276 2018/07/06 09:05:01 sf 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.
@@ -174,7 +174,7 @@ ssh_kex2(char *host, struct sockaddr *hostaddr, u_short port)
174 compat_cipher_proposal(options.ciphers); 174 compat_cipher_proposal(options.ciphers);
175 myproposal[PROPOSAL_COMP_ALGS_CTOS] = 175 myproposal[PROPOSAL_COMP_ALGS_CTOS] =
176 myproposal[PROPOSAL_COMP_ALGS_STOC] = options.compression ? 176 myproposal[PROPOSAL_COMP_ALGS_STOC] = options.compression ?
177 "zlib@openssh.com,zlib,none" : "none,zlib@openssh.com,zlib"; 177 "zlib@openssh.com,none" : "none,zlib@openssh.com";
178 myproposal[PROPOSAL_MAC_ALGS_CTOS] = 178 myproposal[PROPOSAL_MAC_ALGS_CTOS] =
179 myproposal[PROPOSAL_MAC_ALGS_STOC] = options.macs; 179 myproposal[PROPOSAL_MAC_ALGS_STOC] = options.macs;
180 if (options.hostkeyalgorithms != NULL) { 180 if (options.hostkeyalgorithms != NULL) {