aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_time.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-05-08 11:08:25 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-05-08 11:08:25 +0000
commit7e797a06c3eeac137eeb2e5743a7982bb5636841 (patch)
tree1de36086f460fdf328b4cb627ec5e45311a04d77 /crypto/asn1/a_time.c
parent8cf6522820b3870121711b81eafa3afdaecf19ae (diff)
downloadopenssl-7e797a06c3eeac137eeb2e5743a7982bb5636841.tar.gz
GeneralizedTime setting fixes.
Diffstat (limited to 'crypto/asn1/a_time.c')
-rw-r--r--crypto/asn1/a_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index c19b7b2cac..718992d0a5 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -102,7 +102,7 @@ ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
#else
ts=gmtime(&t);
#endif
- if((ts->tm_year >= 1950) && (ts->tm_year < 2050))
+ if((ts->tm_year >= 50) && (ts->tm_year < 150))
return ASN1_UTCTIME_set(s, t);
return ASN1_GENERALIZEDTIME_set(s,t);
}