-2009-06-09 21:17 -0700 Brendan Cully <brendan@kublai.com> (0fb94d6eee38)
+2009-06-09 22:03 -0700 Brendan Cully <brendan@kublai.com> (9dcb7288039d)
+
+ * mutt_ssl.c: Whitespace.
+
+ * imap/imap.c: Skip comparison against current mailbox for idle
+ connections. Closes #3216.
* imap/util.c: Revert accidental change
}
/* check whether cert is preauthorized. If host is not null, verify that
- * it matches the certificate */
+ * it matches the certificate.
+ * Return > 0: authorized, < 0: problems, 0: unknown validity */
static int ssl_check_preauth (X509 *cert, const char* host)
{
char buf[SHORT_STRING];
chain = SSL_get_peer_cert_chain (data->ssl);
chain_len = sk_X509_num (chain);
- if (!chain || (chain_len <= 1))
+ /* negative preauthrc means the certificate won't be accepted without
+ * manual override. */
+ if (preauthrc < 0 || !chain || (chain_len <= 1))
return interactive_check_cert (data->cert, 0, 0);
/* check the chain from root to peer. */