提交 45cd59ac 编写于 作者: D Dr. Stephen Henson

If not checking all certificates don't attempt to find a CRL

for the leaf certificate of a CRL path.
上级 d11d977d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册