mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-04 00:00:14 -04:00
vici: Have an explicit "relaxed" keyword for the default revocation policy
This commit is contained in:
parent
585814470d
commit
f3e1ec4a85
@ -1025,12 +1025,16 @@ CALLBACK(parse_revocation, bool,
|
||||
enum_map_t map[] = {
|
||||
{ "strict", VALIDATION_GOOD },
|
||||
{ "ifuri", VALIDATION_SKIPPED },
|
||||
{ "relaxed", VALIDATION_FAILED },
|
||||
};
|
||||
int d;
|
||||
|
||||
if (parse_map(map, countof(map), &d, v))
|
||||
{
|
||||
cfg->add(cfg, AUTH_RULE_CRL_VALIDATION, d);
|
||||
if (d != VALIDATION_FAILED)
|
||||
{
|
||||
cfg->add(cfg, AUTH_RULE_CRL_VALIDATION, d);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user