Remove compression field from SSL session if compression disabled
This commit is contained in:
parent
6852e95c2a
commit
8844055b0e
7 changed files with 91 additions and 15 deletions
library
|
@ -86,7 +86,8 @@ int mbedtls_ssl_cache_get( void *data, mbedtls_ssl_session *session )
|
|||
|
||||
if( mbedtls_ssl_session_get_ciphersuite( session ) !=
|
||||
mbedtls_ssl_session_get_ciphersuite( &entry->session ) ||
|
||||
session->compression != entry->session.compression ||
|
||||
mbedtls_ssl_session_get_compression( session ) !=
|
||||
mbedtls_ssl_session_get_compression( &entry->session ) ||
|
||||
session->id_len != entry->session.id_len )
|
||||
{
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue