mirror of
https://github.com/openssl/openssl.git
synced 2024-12-20 15:33:38 +08:00
If not checking all certificates don't attempt to find a CRL
for the leaf certificate of a CRL path.
This commit is contained in:
parent
d11d977da4
commit
45cd59ac71
@ -679,7 +679,12 @@ static int check_revocation(X509_STORE_CTX *ctx)
|
||||
if (ctx->param->flags & X509_V_FLAG_CRL_CHECK_ALL)
|
||||
last = sk_X509_num(ctx->chain) - 1;
|
||||
else
|
||||
{
|
||||
/* If checking CRL paths this isn't the EE certificate */
|
||||
if (ctx->parent)
|
||||
return 1;
|
||||
last = 0;
|
||||
}
|
||||
for(i = 0; i <= last; i++)
|
||||
{
|
||||
ctx->error_depth = i;
|
||||
|
Loading…
Reference in New Issue
Block a user