mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
vici: Properly add CRLs to the credential set
add_crl() ensures that old CLRs are not stored in the credential set.
This commit is contained in:
parent
322a11ccbb
commit
e5e352e631
@ -131,8 +131,14 @@ CALLBACK(load_cert, vici_message_t*,
|
||||
|
||||
DBG1(DBG_CFG, "loaded certificate '%Y'", cert->get_subject(cert));
|
||||
|
||||
this->creds->add_cert(this->creds, TRUE, cert);
|
||||
|
||||
if (type == CERT_X509_CRL)
|
||||
{
|
||||
this->creds->add_crl(this->creds, (crl_t*)cert);
|
||||
}
|
||||
else
|
||||
{
|
||||
this->creds->add_cert(this->creds, TRUE, cert);
|
||||
}
|
||||
return create_reply(NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user