diff options
author | deraadt <> | 2014-04-18 23:42:00 +0000 |
---|---|---|
committer | deraadt <> | 2014-04-18 23:42:00 +0000 |
commit | 4855ea84e69fe2edcf4d523233d15c950bd77e4d (patch) | |
tree | d34f0513fa7ea1f0d59700feaf05db49838ca750 /src/lib/libcrypto/asn1/a_time.c | |
parent | 8b311d691c1644d610b65caacf0e7589a47eee84 (diff) | |
download | openbsd-4855ea84e69fe2edcf4d523233d15c950bd77e4d.tar.gz openbsd-4855ea84e69fe2edcf4d523233d15c950bd77e4d.tar.bz2 openbsd-4855ea84e69fe2edcf4d523233d15c950bd77e4d.zip |
OPENSSL_gmtime() is really just gmtime_r(); ok guenther
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/asn1/a_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/a_time.c b/src/lib/libcrypto/asn1/a_time.c index 13fd324517..f3f28369f4 100644 --- a/src/lib/libcrypto/asn1/a_time.c +++ b/src/lib/libcrypto/asn1/a_time.c | |||
@@ -94,7 +94,7 @@ ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, | |||
94 | struct tm *ts; | 94 | struct tm *ts; |
95 | struct tm data; | 95 | struct tm data; |
96 | 96 | ||
97 | ts=OPENSSL_gmtime(&t,&data); | 97 | ts=gmtime_r(&t,&data); |
98 | if (ts == NULL) { | 98 | if (ts == NULL) { |
99 | ASN1err(ASN1_F_ASN1_TIME_ADJ, ASN1_R_ERROR_GETTING_TIME); | 99 | ASN1err(ASN1_F_ASN1_TIME_ADJ, ASN1_R_ERROR_GETTING_TIME); |
100 | return NULL; | 100 | return NULL; |