提交 9ed1fa48 编写于 作者: D Dr. Stephen Henson

Fix Certificate and CRL adding in X509_load_cert_crl_file:

an X509_INFO structure can contain more than one object,
for example a certififcate and a CRL.
上级 500df82a
......@@ -285,7 +285,8 @@ int X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type)
if(itmp->x509) {
X509_STORE_add_cert(ctx->store_ctx, itmp->x509);
count++;
} else if(itmp->crl) {
}
if(itmp->crl) {
X509_STORE_add_crl(ctx->store_ctx, itmp->crl);
count++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册