From f47199da26d6fdf22433dae4c5fbf5c9097e2403 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Thu, 13 May 2021 06:29:13 +0100 Subject: [PATCH] Improve naming of helper function for reference session cache Signed-off-by: Hanno Becker --- library/ssl_cache.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/library/ssl_cache.c b/library/ssl_cache.c index 6ef1a972c..5790fc6bf 100644 --- a/library/ssl_cache.c +++ b/library/ssl_cache.c @@ -124,10 +124,10 @@ exit: return( ret ); } -static int ssl_cache_find_fresh_entry( mbedtls_ssl_cache_context *cache, - unsigned char const *session_id, - size_t session_id_len, - mbedtls_ssl_cache_entry **dst ) +static int ssl_cache_pick_writing_slot( mbedtls_ssl_cache_context *cache, + unsigned char const *session_id, + size_t session_id_len, + mbedtls_ssl_cache_entry **dst ) { int ret = 1; #if defined(MBEDTLS_HAVE_TIME) @@ -270,9 +270,9 @@ int mbedtls_ssl_cache_set( void *data, return( ret ); #endif - ret = ssl_cache_find_fresh_entry( cache, - session_id, session_id_len, - &cur ); + ret = ssl_cache_pick_writing_slot( cache, + session_id, session_id_len, + &cur ); if( ret != 0 ) goto exit;