Really get X509_CRL_CHECK_ALL right this time...
This commit is contained in:
parent
fe0444b17e
commit
476f09712c
@ -453,9 +453,9 @@ static int check_revocation(X509_STORE_CTX *ctx)
|
|||||||
if (!(ctx->flags & X509_V_FLAG_CRL_CHECK))
|
if (!(ctx->flags & X509_V_FLAG_CRL_CHECK))
|
||||||
return 1;
|
return 1;
|
||||||
if (ctx->flags & X509_V_FLAG_CRL_CHECK_ALL)
|
if (ctx->flags & X509_V_FLAG_CRL_CHECK_ALL)
|
||||||
last = 0;
|
|
||||||
else
|
|
||||||
last = sk_X509_num(ctx->chain) - 1;
|
last = sk_X509_num(ctx->chain) - 1;
|
||||||
|
else
|
||||||
|
last = 0;
|
||||||
for(i = 0; i <= last; i++)
|
for(i = 0; i <= last; i++)
|
||||||
{
|
{
|
||||||
ctx->error_depth = i;
|
ctx->error_depth = i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user