commit | 006f2cce2eb1b73fa966fe52e75089dd5ec34912 | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Fri May 14 04:55:35 2021 +0100 |
committer | Hanno Becker <hanno.becker@arm.com> | Fri May 14 04:57:44 2021 +0100 |
tree | 4db0218150c970274f7e1c3098e9700ad03a216d | |
parent | 0d05f40222a513a9dcce937583f9de337aa0659f [diff] [blame] |
Fix compile-time guard in session cache implementation Signed-off-by: Hanno Becker <hanno.becker@arm.com>
diff --git a/library/ssl_cache.c b/library/ssl_cache.c index 1bbcc95..f337547 100644 --- a/library/ssl_cache.c +++ b/library/ssl_cache.c
@@ -131,8 +131,9 @@ { #if defined(MBEDTLS_HAVE_TIME) mbedtls_time_t t = mbedtls_time( NULL ), oldest = 0; +#endif /* MBEDTLS_HAVE_TIME */ + mbedtls_ssl_cache_entry *old = NULL; -#endif int count = 0; mbedtls_ssl_cache_entry *cur, *prv;