From 4855ea84e69fe2edcf4d523233d15c950bd77e4d Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 18 Apr 2014 23:42:00 +0000 Subject: OPENSSL_gmtime() is really just gmtime_r(); ok guenther --- src/lib/libcrypto/o_time.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/lib/libcrypto/o_time.c') diff --git a/src/lib/libcrypto/o_time.c b/src/lib/libcrypto/o_time.c index 83028356b9..000372d35b 100644 --- a/src/lib/libcrypto/o_time.c +++ b/src/lib/libcrypto/o_time.c @@ -63,12 +63,6 @@ #include #include "o_time.h" -struct tm * -OPENSSL_gmtime(const time_t *timer, struct tm *result) -{ - return gmtime_r(timer, result); -} - /* Take a tm structure and add an offset to it. This avoids any OS issues * with restricted date types and overflows which cause the year 2038 * problem. @@ -194,8 +188,8 @@ check_time(long offset) time_t t1, t2; time(&t1); t2 = t1 + offset; - OPENSSL_gmtime(&t2, &tm2); - OPENSSL_gmtime(&t1, &tm1); + gmtime_r(&t2, &tm2); + gmtime_r(&t1, &tm1); OPENSSL_gmtime_adj(&tm1, 0, offset); if ((tm1.tm_year == tm2.tm_year) && (tm1.tm_mon == tm2.tm_mon) && -- cgit v1.2.3-55-g6feb