mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 11:48:12 +00:00
Fix naked call to time() with platform call
In ssl_cache.c a call to time() was being made instead of it's platform equivalent.
This commit is contained in:
parent
9fae22269b
commit
a55e084bce
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ int mbedtls_ssl_cache_set( void *data, const mbedtls_ssl_session *session )
|
|||
{
|
||||
int ret = 1;
|
||||
#if defined(MBEDTLS_HAVE_TIME)
|
||||
mbedtls_time_t t = time( NULL ), oldest = 0;
|
||||
mbedtls_time_t t = mbedtls_time( NULL ), oldest = 0;
|
||||
mbedtls_ssl_cache_entry *old = NULL;
|
||||
#endif
|
||||
mbedtls_ssl_cache_context *cache = (mbedtls_ssl_cache_context *) data;
|
||||
|
|
Loading…
Reference in a new issue