projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8d6281
)
Bug fix for X.509 two-digit year.
author
Ulf Möller
<ulf@openssl.org>
Tue, 6 Apr 1999 15:29:54 +0000
(15:29 +0000)
committer
Ulf Möller
<ulf@openssl.org>
Tue, 6 Apr 1999 15:29:54 +0000
(15:29 +0000)
Pointed out by Alexander Tyshlek <tyshlek@fuib.com> and Peter Gutmann
<pgut001@cs.auckland.ac.nz>
crypto/x509/x509_vfy.c
patch
|
blob
|
history
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);