420-timestamp_check.patch 319 B

123456789101112
  1. --- a/src/tls/x509v3.c
  2. +++ b/src/tls/x509v3.c
  3. @@ -1848,6 +1848,9 @@ int x509_certificate_chain_validate(stru
  4. if (chain_trusted)
  5. continue;
  6. +#ifdef NO_TIMESTAMP_CHECK
  7. + disable_time_checks = 1;
  8. +#endif
  9. if (!disable_time_checks &&
  10. ((unsigned long) now.sec <
  11. (unsigned long) cert->not_before ||