mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-06-06 05:25:18 +00:00
Replace cases of time_t with mbedtls_time_t
Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
+1
-1
@@ -3178,7 +3178,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 */
|
||||
|
||||
/*
|
||||
|
||||
@@ -277,7 +277,7 @@ static void print_time(const uint64_t *time)
|
||||
{
|
||||
#if defined(MBEDTLS_HAVE_TIME)
|
||||
char buf[20];
|
||||
struct tm *t = gmtime((time_t *) time);
|
||||
struct tm *t = gmtime((mbedtls_time_t *) time);
|
||||
static const char format[] = "%Y-%m-%d %H:%M:%S";
|
||||
if (NULL != t) {
|
||||
strftime(buf, sizeof(buf), format, t);
|
||||
|
||||
@@ -25,7 +25,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
|
||||
|
||||
Reference in New Issue
Block a user