Apply pubkey and signature constraints in vici plugin

This commit is contained in:
Andreas Steffen
2015-12-17 17:49:48 +01:00
parent a78e1c3b11
commit cc874350b8
4 changed files with 124 additions and 115 deletions
+5 -1
View File
@@ -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"))