Apply pubkey and signature constraints in vici plugin
This commit is contained in:
@@ -948,9 +948,13 @@ CALLBACK(parse_auth, bool,
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
if (strcaseeq(buf, "pubkey"))
|
||||
if (strpfx(buf, "pubkey") ||
|
||||
strpfx(buf, "rsa") ||
|
||||
strpfx(buf, "ecdsa") ||
|
||||
strpfx(buf, "bliss"))
|
||||
{
|
||||
cfg->add(cfg, AUTH_RULE_AUTH_CLASS, AUTH_CLASS_PUBKEY);
|
||||
cfg->add_pubkey_constraints(cfg, buf);
|
||||
return TRUE;
|
||||
}
|
||||
if (strcaseeq(buf, "psk"))
|
||||
|
||||
Reference in New Issue
Block a user