mirror of
https://github.com/openssl/openssl.git
synced 2024-12-25 01:43:57 +08:00
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.
This commit is contained in:
parent
500df82a96
commit
9ed1fa4813
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user