diff options
author | Hiroyuki YAMAMORI <h-yamamo@db3.so-net.ne.jp> | 2015-08-26 15:06:22 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-09-02 00:37:58 +0100 |
commit | 31472acf61fce8bbc39390ca96ff2f9da2dfafb8 (patch) | |
tree | be531d6fb2bed4593ba13e0bcfb61107b0d2140c | |
parent | 28643a1615f4b09295a18d7ae0cb13adca8c8d00 (diff) | |
download | openssl-31472acf61fce8bbc39390ca96ff2f9da2dfafb8.tar.gz |
Fix DTLS1.2 compression
Backport of equivalent fix from master. The only compression
method is stateful and hence incompatible with DTLS. The DTLS
test was not working for DTLS1.2
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index c0931e7877..d72756a957 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1980,7 +1980,7 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth) ret->extra_certs = NULL; /* No compression for DTLS */ - if (meth->version != DTLS1_VERSION) + if (!(meth->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS)) ret->comp_methods = SSL_COMP_get_compression_methods(); ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH; |