]> granicus.if.org Git - neomutt/commitdiff
Add a comment about gnutls date bits in certstat.
authorKevin McCarthy <kevin@8t8.us>
Wed, 10 Oct 2018 19:50:15 +0000 (12:50 -0700)
committerRichard Russon <rich@flatcap.org>
Wed, 10 Oct 2018 19:50:15 +0000 (12:50 -0700)
It's easy to miss the call disabling date checking and wonder why the
certstat bits are not set.

conn/ssl_gnutls.c

index f941c5a57601251b88c88f8d409455118b720e55..987dcfdba0567886b19566ce6978c465f57673d1 100644 (file)
@@ -347,6 +347,10 @@ static int tls_check_preauth(const gnutls_datum_t *certdata,
     return -1;
   }
 
+  /* Note: tls_negotiate() contains a call to
+   * gnutls_certificate_set_verify_flags() with a flag disabling
+   * GnuTLS checking of the dates.  So certstat shouldn't have the
+   * GNUTLS_CERT_EXPIRED and GNUTLS_CERT_NOT_ACTIVATED bits set. */
   if (SslVerifyDates != MUTT_NO)
   {
     if (gnutls_x509_crt_get_expiration_time(cert) < time(NULL))