提交 2f0275a4 编写于 作者: D Dr. Stephen Henson

Disable compression for DTLS.

The only standard compression method is stateful and is incompatible with
DTLS.
上级 eb7ece13
...@@ -1865,6 +1865,8 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth) ...@@ -1865,6 +1865,8 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth)
CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_CTX, ret, &ret->ex_data); CRYPTO_new_ex_data(CRYPTO_EX_INDEX_SSL_CTX, ret, &ret->ex_data);
ret->extra_certs=NULL; ret->extra_certs=NULL;
/* No compression for DTLS */
if (!(meth->ssl3_enc->enc_flags & SSL_ENC_FLAG_DTLS))
ret->comp_methods=SSL_COMP_get_compression_methods(); ret->comp_methods=SSL_COMP_get_compression_methods();
ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH; ret->max_send_fragment = SSL3_RT_MAX_PLAIN_LENGTH;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册