2009-01-28 21:44:24 +08:00
|
|
|
--- a/src/tls/x509v3.c
|
|
|
|
+++ b/src/tls/x509v3.c
|
2012-03-27 18:42:47 +08:00
|
|
|
@@ -1848,6 +1848,9 @@ int x509_certificate_chain_validate(stru
|
2008-07-15 09:40:55 +08:00
|
|
|
if (chain_trusted)
|
|
|
|
continue;
|
|
|
|
|
2011-11-04 09:05:26 +08:00
|
|
|
+#ifdef NO_TIMESTAMP_CHECK
|
|
|
|
+ disable_time_checks = 1;
|
2008-07-15 09:40:55 +08:00
|
|
|
+#endif
|
2011-11-04 09:05:26 +08:00
|
|
|
if (!disable_time_checks &&
|
|
|
|
((unsigned long) now.sec <
|
|
|
|
(unsigned long) cert->not_before ||
|