summaryrefslogtreecommitdiff
path: root/lib/libssl/s3_both.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-07-10 08:51:16 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-07-10 08:51:16 +0000
commit3cf12f4fd325fb1a3203f943c2fb19bed7b9b704 (patch)
treed5e730712b82fc2fea200e8565430b0a2290eacf /lib/libssl/s3_both.c
parent1c8cb17d239182a04a69b0164b66e830e15dc75e (diff)
decompress libssl. ok beck jsing
Diffstat (limited to 'lib/libssl/s3_both.c')
-rw-r--r--lib/libssl/s3_both.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/libssl/s3_both.c b/lib/libssl/s3_both.c
index 2da6b527e11..500387e3720 100644
--- a/lib/libssl/s3_both.c
+++ b/lib/libssl/s3_both.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: s3_both.c,v 1.25 2014/06/19 21:29:51 tedu Exp $ */
+/* $OpenBSD: s3_both.c,v 1.26 2014/07/10 08:51:14 tedu Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -287,7 +287,6 @@ f_err:
* ssl->s3->read_sequence zero
* ssl->s3->read_mac_secret re-init
* ssl->session->read_sym_enc assign
- * ssl->session->read_compression assign
* ssl->session->read_hash assign
*/
int
@@ -640,10 +639,6 @@ ssl3_setup_read_buffer(SSL *s)
s->s3->init_extra = 1;
len += SSL3_RT_MAX_EXTRA;
}
-#ifndef OPENSSL_NO_COMP
- if (!(s->options & SSL_OP_NO_COMPRESSION))
- len += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
-#endif
if ((p = malloc(len)) == NULL)
goto err;
s->s3->rbuf.buf = p;
@@ -676,10 +671,6 @@ ssl3_setup_write_buffer(SSL *s)
if (s->s3->wbuf.buf == NULL) {
len = s->max_send_fragment +
SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD + headerlen + align;
-#ifndef OPENSSL_NO_COMP
- if (!(s->options & SSL_OP_NO_COMPRESSION))
- len += SSL3_RT_MAX_COMPRESSED_OVERHEAD;
-#endif
if (!(s->options & SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS))
len += headerlen + align +
SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD;