diff options
author | djm@openbsd.org <djm@openbsd.org> | 2016-09-28 16:33:06 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2016-09-29 03:11:32 +1000 |
commit | 0082fba4efdd492f765ed4c53f0d0fbd3bdbdf7f (patch) | |
tree | b0271896ec4d6c0e716821954212677438824a05 /packet.h | |
parent | 27c3a9c2aede2184856b5de1e6eca414bb751c38 (diff) |
upstream commit
Remove support for pre-authentication compression. Doing
compression early in the protocol probably seemed reasonable in the 1990s,
but today it's clearly a bad idea in terms of both cryptography (cf. multiple
compression oracle attacks in TLS) and attack surface.
Moreover, to support it across privilege-separation zlib needed
the assistance of a complex shared-memory manager that made the
required attack surface considerably larger.
Prompted by Guido Vranken pointing out a compiler-elided security
check in the shared memory manager found by Stack
(http://css.csail.mit.edu/stack/); ok deraadt@ markus@
NB. pre-auth authentication has been disabled by default in sshd
for >10 years.
Upstream-ID: 32af9771788d45a0779693b41d06ec199d849caf
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.h,v 1.71 2016/03/07 19:02:43 djm Exp $ */ | 1 | /* $OpenBSD: packet.h,v 1.72 2016/09/28 16:33:07 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 4 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
@@ -120,11 +120,6 @@ void ssh_packet_send_debug(struct ssh *, const char *fmt, ...) __attribute__ | |||
120 | int ssh_set_newkeys(struct ssh *, int mode); | 120 | int ssh_set_newkeys(struct ssh *, int mode); |
121 | void ssh_packet_get_bytes(struct ssh *, u_int64_t *, u_int64_t *); | 121 | void ssh_packet_get_bytes(struct ssh *, u_int64_t *, u_int64_t *); |
122 | 122 | ||
123 | typedef void *(ssh_packet_comp_alloc_func)(void *, u_int, u_int); | ||
124 | typedef void (ssh_packet_comp_free_func)(void *, void *); | ||
125 | void ssh_packet_set_compress_hooks(struct ssh *, void *, | ||
126 | ssh_packet_comp_alloc_func *, ssh_packet_comp_free_func *); | ||
127 | |||
128 | int ssh_packet_write_poll(struct ssh *); | 123 | int ssh_packet_write_poll(struct ssh *); |
129 | int ssh_packet_write_wait(struct ssh *); | 124 | int ssh_packet_write_wait(struct ssh *); |
130 | int ssh_packet_have_data_to_write(struct ssh *); | 125 | int ssh_packet_have_data_to_write(struct ssh *); |