mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Don't cache empty session ID nor resumed session
This commit is contained in:
committed by
Paul Bakker
parent
7cd5924cec
commit
c086cce3d3
@ -1303,6 +1303,7 @@ static int ssl_write_server_hello( ssl_context *ssl )
|
||||
*/
|
||||
if( ssl->handshake->resume == 0 &&
|
||||
ssl->renegotiation == SSL_INITIAL_HANDSHAKE &&
|
||||
ssl->session_negotiate->length != 0 &&
|
||||
ssl->f_get_cache != NULL &&
|
||||
ssl->f_get_cache( ssl->p_get_cache, ssl->session_negotiate ) == 0 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user