Skip to content

Commit

Permalink
Merge pull request #1059 from chrisrd/issue-1058
Browse files Browse the repository at this point in the history
Reapply Issue #859, #861: Fix handling of CRL lookups
  • Loading branch information
Castaglia committed Jul 25, 2020
2 parents fe00ffc + 52f0f27 commit 73729f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions contrib/mod_tls.c
Expand Up @@ -10036,10 +10036,10 @@ static int tls_verify_crl(int ok, X509_STORE_CTX *ctx) {

#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
!defined(HAVE_LIBRESSL)
crls = X509_STORE_CTX_get1_crls(store_ctx, subject);
crls = X509_STORE_CTX_get1_crls(store_ctx, issuer);
#elif OPENSSL_VERSION_NUMBER >= 0x10000000L && \
!defined(HAVE_LIBRESSL)
crls = X509_STORE_get1_crls(store_ctx, subject);
crls = X509_STORE_get1_crls(store_ctx, issuer);
#else
/* Your OpenSSL is before 1.0.0. You really need to upgrade. */
crls = NULL;
Expand Down Expand Up @@ -10158,6 +10158,9 @@ static int tls_verify_crl(int ok, X509_STORE_CTX *ctx) {
ASN1_INTEGER *sn;

revoked = sk_X509_REVOKED_value(X509_CRL_get_REVOKED(crl), j);
if (revoked == NULL) {
continue;
}
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
!defined(HAVE_LIBRESSL)
sn = X509_REVOKED_get0_serialNumber(revoked);
Expand Down

0 comments on commit 73729f8

Please sign in to comment.