mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 05:42:35 +00:00
Add test for cache timeout getter
Signed-off-by: Pengyu Lv <pengyu.lv@arm.com>
This commit is contained in:
parent
db6143364a
commit
5cbb93ef14
@ -93,6 +93,10 @@ void mbedtls_test_init_handshake_options(
|
|||||||
opts->cache = NULL;
|
opts->cache = NULL;
|
||||||
ASSERT_ALLOC(opts->cache, 1);
|
ASSERT_ALLOC(opts->cache, 1);
|
||||||
mbedtls_ssl_cache_init(opts->cache);
|
mbedtls_ssl_cache_init(opts->cache);
|
||||||
|
#if defined(MBEDTLS_HAVE_TIME)
|
||||||
|
TEST_EQUAL(mbedtls_ssl_cache_get_timeout(opts->cache),
|
||||||
|
MBEDTLS_SSL_CACHE_DEFAULT_TIMEOUT);
|
||||||
|
#endif
|
||||||
exit:
|
exit:
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user