projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug fix for X.509 two-digit year.
[openssl.git]
/
crypto
/
x509
/
x509_vfy.c
diff --git
a/crypto/x509/x509_vfy.c
b/crypto/x509/x509_vfy.c
index 6bae1386d45277ba9a61ef32fe9c9792533eda68..752cf4f329201b2cd054f63bd590412238e89989 100644
(file)
--- 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 <
7
0) i+=100;
+ if (i <
5
0) i+=100;
j=(buff2[0]-'0')*10+(buff2[1]-'0');
- if (j <
7
0) j+=100;
+ if (j <
5
0) j+=100;
if (i < j) return (-1);
if (i > j) return (1);