Backport time_t type conversions

Signed-off-by: Ben Taylor <[email protected]>
This commit is contained in:
Ben Taylor
2025-09-29 15:35:28 +01:00
parent 02b7707b10
commit 6e73b2f2fd
3 changed files with 5 additions and 2 deletions
+4
View File
@@ -0,0 +1,4 @@
Bugfix
* Fix a build error or incorrect TLS session
lifetime on platforms where mbedtls_time_t
is not time_t. Fixes #10236.
+1 -1
View File
@@ -3627,7 +3627,7 @@ static int ssl_tls12_session_load(mbedtls_ssl_session *session,
start = MBEDTLS_GET_UINT64_BE(p, 0);
p += 8;
session->start = (time_t) start;
session->start = (mbedtls_time_t) start;
#endif /* MBEDTLS_HAVE_TIME */
/*
-1
View File
@@ -22,7 +22,6 @@
#if defined(MBEDTLS_HAVE_TIME)
#include <time.h>
#define mbedtls_time time
#define mbedtls_time_t time_t
#endif
#define mbedtls_printf printf
#define mbedtls_calloc calloc