Don't check any revocation info on proxy certificates
authorRichard Levitte <levitte@openssl.org>
Wed, 3 Aug 2016 14:02:20 +0000 (16:02 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 3 Aug 2016 14:05:28 +0000 (16:05 +0200)
Because proxy certificates typically come without any CRL information,
trying to check revocation on them will fail.  Better not to try
checking such information for them at all.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/x509/x509_vfy.c

index 099a4d81bbcd0f4be364fc8f6e58ecee09556801..28745741b208a580b1a799ffaff7a4a64a14687d 100644 (file)
@@ -844,6 +844,9 @@ static int check_cert(X509_STORE_CTX *ctx)
     ctx->current_crl_score = 0;
     ctx->current_reasons = 0;
 
+    if (x->ex_flags & EXFLAG_PROXY)
+        return 1;
+
     while (ctx->current_reasons != CRLDP_ALL_REASONS) {
         unsigned int last_reasons = ctx->current_reasons;