diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_utctm.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_utctm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_utctm.c b/src/lib/libcrypto/asn1/a_utctm.c index d8135d0457..a2325f2525 100644 --- a/src/lib/libcrypto/asn1/a_utctm.c +++ b/src/lib/libcrypto/asn1/a_utctm.c | |||
@@ -181,7 +181,7 @@ ASN1_UTCTIME *ASN1_UTCTIME_adj(ASN1_UTCTIME *s, time_t t, | |||
181 | if (s == NULL) | 181 | if (s == NULL) |
182 | return(NULL); | 182 | return(NULL); |
183 | 183 | ||
184 | ts=OPENSSL_gmtime(&t, &data); | 184 | ts=gmtime_r(&t, &data); |
185 | if (ts == NULL) | 185 | if (ts == NULL) |
186 | return(NULL); | 186 | return(NULL); |
187 | 187 | ||
@@ -232,7 +232,7 @@ int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t) | |||
232 | 232 | ||
233 | t -= offset*60; /* FIXME: may overflow in extreme cases */ | 233 | t -= offset*60; /* FIXME: may overflow in extreme cases */ |
234 | 234 | ||
235 | tm = OPENSSL_gmtime(&t, &data); | 235 | tm = gmtime_r(&t, &data); |
236 | 236 | ||
237 | #define return_cmp(a,b) if ((a)<(b)) return -1; else if ((a)>(b)) return 1 | 237 | #define return_cmp(a,b) if ((a)<(b)) return -1; else if ((a)>(b)) return 1 |
238 | year = g2(s->data); | 238 | year = g2(s->data); |