Do not use compression with DTLS

This commit is contained in:
Manuel Pégourié-Gonnard 2014-07-14 17:38:41 +02:00 committed by Paul Bakker
parent 5d53cbef3a
commit a0e1632b79
3 changed files with 67 additions and 14 deletions
library

View file

@ -1444,6 +1444,11 @@ static int ssl_parse_client_hello( ssl_context *ssl )
}
#endif
/* See comments in ssl_write_client_hello() */
#if defined(POLARSSL_SSL_PROTO_DTLS)
if( ssl->transport == SSL_TRANSPORT_DATAGRAM )
ssl->session_negotiate->compression = SSL_COMPRESS_NULL;
#endif
/*
* Check the extension length
*/