mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Add session ID as explicit parameter to SSL session cache API
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
@ -2784,10 +2784,9 @@ static void ssl_check_id_based_session_resumption( mbedtls_ssl_context *ssl )
|
||||
return;
|
||||
#endif
|
||||
|
||||
session_tmp.id_len = session->id_len;
|
||||
memcpy( session_tmp.id, session->id, session->id_len );
|
||||
|
||||
ret = ssl->conf->f_get_cache( ssl->conf->p_cache,
|
||||
session->id,
|
||||
session->id_len,
|
||||
&session_tmp );
|
||||
if( ret != 0 )
|
||||
goto exit;
|
||||
|
Reference in New Issue
Block a user