diff options
author | sf@openbsd.org <sf@openbsd.org> | 2018-07-09 13:37:10 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-07-10 15:13:41 +1000 |
commit | 168b46f405d6736960ba7930389eecb9b6710b7e (patch) | |
tree | aab4c134cce64b06caefa41246805d69daab4fe8 /kex.c | |
parent | ab39267fa1243d02b6c330615539fc4b21e17dc4 (diff) |
upstream: Revert previous two commits
It turns out we still support pre-auth compression on the client.
Therefore revert the previous two commits:
date: 2018/07/06 09:06:14; author: sf; commitid: yZVYKIRtUZWD9CmE;
Rename COMP_DELAYED to COMP_ZLIB
Only delayed compression is supported nowadays.
ok markus@
date: 2018/07/06 09:05:01; author: sf; commitid: rEGuT5UgI9f6kddP;
Remove leftovers from pre-authentication compression
Support for this has been removed in 2016.
COMP_DELAYED will be renamed in a later commit.
ok markus@
OpenBSD-Commit-ID: cdfef526357e4e1483c86cf599491b2dafb77772
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.c,v 1.140 2018/07/06 09:06:14 sf Exp $ */ | 1 | /* $OpenBSD: kex.c,v 1.141 2018/07/09 13:37:10 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 | * |
@@ -741,6 +741,8 @@ choose_comp(struct sshcomp *comp, char *client, char *server) | |||
741 | if (name == NULL) | 741 | if (name == NULL) |
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; | ||
745 | } else if (strcmp(name, "zlib") == 0) { | ||
744 | comp->type = COMP_ZLIB; | 746 | comp->type = COMP_ZLIB; |
745 | } else if (strcmp(name, "none") == 0) { | 747 | } else if (strcmp(name, "none") == 0) { |
746 | comp->type = COMP_NONE; | 748 | comp->type = COMP_NONE; |