From: Jan Vcelak Date: Wed, 20 Jul 2011 16:55:33 +0000 (+0200) Subject: ITS#6998 MozNSS: when cert not required, ignore issuer expiration X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8ac17e17c831ed44174a22c1cb2a8dc39fcb976;p=openldap ITS#6998 MozNSS: when cert not required, ignore issuer expiration When server certificate is not required in a TLS session (e.g. TLS_REQCERT is set to 'never'), ignore expired issuer certificate error and do not terminate the connection. --- diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c index 32af7ec7c0..7ae7d8216c 100644 --- a/libraries/libldap/tls_m.c +++ b/libraries/libldap/tls_m.c @@ -671,6 +671,7 @@ tlsm_bad_cert_handler(void *arg, PRFileDesc *ssl) case SEC_ERROR_UNTRUSTED_ISSUER: case SEC_ERROR_UNKNOWN_ISSUER: case SEC_ERROR_EXPIRED_CERTIFICATE: + case SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE: if (ctx->tc_verify_cert) { success = SECFailure; }