Apply pubkey and signature constraints in vici plugin
[strongswan.git] / src / libcharon / plugins / vici / vici_config.c
index 7f7ce61..52e4a92 100644 (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"))