Respect enforce_critical setting in x509 plugin CRLs
This commit is contained in:
@@ -289,6 +289,14 @@ static bool parse(private_x509_crl_t *this)
|
||||
this->crlNumber = object;
|
||||
break;
|
||||
default:
|
||||
if (critical && lib->settings->get_bool(lib->settings,
|
||||
"libstrongswan.plugins.x509.enforce_critical", FALSE))
|
||||
{
|
||||
DBG1(DBG_LIB, "critical %s extension not supported",
|
||||
(extn_oid == OID_UNKNOWN) ? "unknown" :
|
||||
(char*)oid_names[extn_oid].name);
|
||||
goto end;
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user