Do not use compression with DTLS
This commit is contained in:
parent
5d53cbef3a
commit
a0e1632b79
3 changed files with 67 additions and 14 deletions
library
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue