aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_utctm.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2000-05-29 03:50:37 +0000
committerGeoff Thorpe <geoff@openssl.org>2000-05-29 03:50:37 +0000
commit4dbe060f2c911f1fbd617f9de7e7fde5964fae44 (patch)
treeb81856aaf057bec47bab472fa80e5b9c7c836f5e /crypto/asn1/a_utctm.c
parente2122268286a1bc17dc7c84e21a2d2748f93ddf7 (diff)
downloadopenssl-4dbe060f2c911f1fbd617f9de7e7fde5964fae44.tar.gz
It seems that mktime does what is required here. Certainly timegm() can
not be used because it is not available on all systems (most notably, win32).
Diffstat (limited to 'crypto/asn1/a_utctm.c')
-rw-r--r--crypto/asn1/a_utctm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/asn1/a_utctm.c b/crypto/asn1/a_utctm.c
index f6652e7081..b855867dc1 100644
--- a/crypto/asn1/a_utctm.c
+++ b/crypto/asn1/a_utctm.c
@@ -291,10 +291,5 @@ time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s)
}
#undef g2
- return timegm(&tm)-offset*60; /* FIXME: timegm is non-standard,
- * typically we only have mktime (which
- * interprets the struct tm according to
- * the current time zone setting).
- * Also time_t is inappropriate for general
- * UTC times because it may a 32 bit type. */
+ return mktime(&tm)-offset*60;
}