mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-17 00:00:59 -04:00
openssl: Only allow certificates with cRLSign keyUsage to sign CRLs
This commit is contained in:
parent
7d1f221211
commit
01ec54afc9
@ -303,7 +303,7 @@ METHOD(certificate_t, issued_by, bool,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
x509 = (x509_t*)issuer;
|
x509 = (x509_t*)issuer;
|
||||||
if (!(x509->get_flags(x509) & (X509_CA | X509_CRL_SIGN)))
|
if (!(x509->get_flags(x509) & X509_CRL_SIGN))
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user