mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-10 00:49:04 +08:00
Improve naming of helper function for reference session cache
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
0248785081
commit
f47199da26
@ -124,10 +124,10 @@ exit:
|
|||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ssl_cache_find_fresh_entry( mbedtls_ssl_cache_context *cache,
|
static int ssl_cache_pick_writing_slot( mbedtls_ssl_cache_context *cache,
|
||||||
unsigned char const *session_id,
|
unsigned char const *session_id,
|
||||||
size_t session_id_len,
|
size_t session_id_len,
|
||||||
mbedtls_ssl_cache_entry **dst )
|
mbedtls_ssl_cache_entry **dst )
|
||||||
{
|
{
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
#if defined(MBEDTLS_HAVE_TIME)
|
#if defined(MBEDTLS_HAVE_TIME)
|
||||||
@ -270,9 +270,9 @@ int mbedtls_ssl_cache_set( void *data,
|
|||||||
return( ret );
|
return( ret );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = ssl_cache_find_fresh_entry( cache,
|
ret = ssl_cache_pick_writing_slot( cache,
|
||||||
session_id, session_id_len,
|
session_id, session_id_len,
|
||||||
&cur );
|
&cur );
|
||||||
if( ret != 0 )
|
if( ret != 0 )
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user