Get X509_V_FLAG_CRL_CHECK_ALL logic the right way round.
PR:544
This commit is contained in:
parent
4fe70c7812
commit
1e2b14e9ca
1 changed files with 2 additions and 2 deletions
|
@ -453,9 +453,9 @@ static int check_revocation(X509_STORE_CTX *ctx)
|
|||
if (!(ctx->flags & X509_V_FLAG_CRL_CHECK))
|
||||
return 1;
|
||||
if (ctx->flags & X509_V_FLAG_CRL_CHECK_ALL)
|
||||
last = sk_X509_num(ctx->chain) - 1;
|
||||
else
|
||||
last = 0;
|
||||
else
|
||||
last = sk_X509_num(ctx->chain) - 1;
|
||||
for(i = 0; i <= last; i++)
|
||||
{
|
||||
ctx->error_depth = i;
|
||||
|
|
Loading…
Reference in a new issue