diff options
author | sf@openbsd.org <sf@openbsd.org> | 2018-07-06 09:06:14 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-07-10 15:13:40 +1000 |
commit | ab39267fa1243d02b6c330615539fc4b21e17dc4 (patch) | |
tree | e1a1525b384e439f41f4a4b106a93efee07b6ac1 /packet.c | |
parent | 95db395d2e56a6f868193aead6cadb2493f036c6 (diff) |
upstream: Rename COMP_DELAYED to COMP_ZLIB
Only delayed compression is supported nowadays.
ok markus@
OpenBSD-Commit-ID: 5b1dbaf3d9a4085aaa10fec0b7a4364396561821
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.273 2018/07/06 09:05:01 sf Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.274 2018/07/06 09:06:14 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,7 +879,7 @@ 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_DELAYED && state->after_authentication | 882 | if (comp->type == COMP_ZLIB && state->after_authentication |
883 | && comp->enabled == 0) { | 883 | && comp->enabled == 0) { |
884 | if ((r = ssh_packet_init_compression(ssh)) < 0) | 884 | if ((r = ssh_packet_init_compression(ssh)) < 0) |
885 | return r; | 885 | return r; |
@@ -970,7 +970,7 @@ ssh_packet_enable_delayed_compress(struct ssh *ssh) | |||
970 | 970 | ||
971 | /* | 971 | /* |
972 | * Remember that we are past the authentication step, so rekeying | 972 | * Remember that we are past the authentication step, so rekeying |
973 | * with COMP_DELAYED will turn on compression immediately. | 973 | * with COMP_ZLIB will turn on compression immediately. |
974 | */ | 974 | */ |
975 | state->after_authentication = 1; | 975 | state->after_authentication = 1; |
976 | for (mode = 0; mode < MODE_MAX; mode++) { | 976 | for (mode = 0; mode < MODE_MAX; mode++) { |
@@ -978,7 +978,7 @@ ssh_packet_enable_delayed_compress(struct ssh *ssh) | |||
978 | if (state->newkeys[mode] == NULL) | 978 | if (state->newkeys[mode] == NULL) |
979 | continue; | 979 | continue; |
980 | comp = &state->newkeys[mode]->comp; | 980 | comp = &state->newkeys[mode]->comp; |
981 | if (comp && !comp->enabled && comp->type == COMP_DELAYED) { | 981 | if (comp && !comp->enabled && comp->type == COMP_ZLIB) { |
982 | if ((r = ssh_packet_init_compression(ssh)) != 0) | 982 | if ((r = ssh_packet_init_compression(ssh)) != 0) |
983 | return r; | 983 | return r; |
984 | if (mode == MODE_OUT) { | 984 | if (mode == MODE_OUT) { |