mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
Fix compile-time guard in session cache implementation
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
0d05f40222
commit
006f2cce2e
|
|
@ -131,8 +131,9 @@ static int ssl_cache_pick_writing_slot( mbedtls_ssl_cache_context *cache,
|
||||||
{
|
{
|
||||||
#if defined(MBEDTLS_HAVE_TIME)
|
#if defined(MBEDTLS_HAVE_TIME)
|
||||||
mbedtls_time_t t = mbedtls_time( NULL ), oldest = 0;
|
mbedtls_time_t t = mbedtls_time( NULL ), oldest = 0;
|
||||||
|
#endif /* MBEDTLS_HAVE_TIME */
|
||||||
|
|
||||||
mbedtls_ssl_cache_entry *old = NULL;
|
mbedtls_ssl_cache_entry *old = NULL;
|
||||||
#endif
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
mbedtls_ssl_cache_entry *cur, *prv;
|
mbedtls_ssl_cache_entry *cur, *prv;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue