diff options
author | markus <> | 2002-09-05 22:45:21 +0000 |
---|---|---|
committer | markus <> | 2002-09-05 22:45:21 +0000 |
commit | 2a6851ef8adb0e84ff2515493d3704a13c6256b0 (patch) | |
tree | 9df5b497548eaf51e9f234d27aaf988cd14882c2 /src/lib/libcrypto/asn1 | |
parent | 5514995a9d5ed91db089875adb509c7781357c0e (diff) | |
download | openbsd-2a6851ef8adb0e84ff2515493d3704a13c6256b0.tar.gz openbsd-2a6851ef8adb0e84ff2515493d3704a13c6256b0.tar.bz2 openbsd-2a6851ef8adb0e84ff2515493d3704a13c6256b0.zip |
import openssl-0.9.7-beta3
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/a_utctm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/a_utctm.c b/src/lib/libcrypto/asn1/a_utctm.c index ed2d827db2..dbb4a42c9d 100644 --- a/src/lib/libcrypto/asn1/a_utctm.c +++ b/src/lib/libcrypto/asn1/a_utctm.c | |||
@@ -222,6 +222,7 @@ ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t) | |||
222 | int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t) | 222 | int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t) |
223 | { | 223 | { |
224 | struct tm *tm; | 224 | struct tm *tm; |
225 | struct tm data; | ||
225 | int offset; | 226 | int offset; |
226 | int year; | 227 | int year; |
227 | 228 | ||
@@ -238,7 +239,7 @@ int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t) | |||
238 | 239 | ||
239 | t -= offset*60; /* FIXME: may overflow in extreme cases */ | 240 | t -= offset*60; /* FIXME: may overflow in extreme cases */ |
240 | 241 | ||
241 | { struct tm data; tm = OPENSSL_gmtime(&t, &data); } | 242 | tm = OPENSSL_gmtime(&t, &data); |
242 | 243 | ||
243 | #define return_cmp(a,b) if ((a)<(b)) return -1; else if ((a)>(b)) return 1 | 244 | #define return_cmp(a,b) if ((a)<(b)) return -1; else if ((a)>(b)) return 1 |
244 | year = g2(s->data); | 245 | year = g2(s->data); |