diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-06 15:29:54 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-06 15:29:54 +0000 |
commit | 20232a9ca5a527025a00faf6ad7a5bbd67a14cd1 (patch) | |
tree | 28851fb5d8f3c2c5865a5441d3d007567d9bf635 /crypto | |
parent | e8d628156ff5fc354e309b51bfbf909a9f75e60f (diff) | |
download | openssl-20232a9ca5a527025a00faf6ad7a5bbd67a14cd1.tar.gz |
Bug fix for X.509 two-digit year.
Pointed out by Alexander Tyshlek <tyshlek@fuib.com> and Peter Gutmann
<pgut001@cs.auckland.ac.nz>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/x509_vfy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 6bae1386d4..752cf4f329 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -449,9 +449,9 @@ ASN1_UTCTIME *ctm; X509_gmtime_adj(&atm,-offset); i=(buff1[0]-'0')*10+(buff1[1]-'0'); - if (i < 70) i+=100; + if (i < 50) i+=100; j=(buff2[0]-'0')*10+(buff2[1]-'0'); - if (j < 70) j+=100; + if (j < 50) j+=100; if (i < j) return (-1); if (i > j) return (1); |