Map auth_class to auth method and IKEv1 proposal attribute
[strongswan.git] / src / libcharon / plugins / stroke / stroke_config.c
index 97d2a78..0d612f1 100644 (file)
@@ -473,6 +473,10 @@ static auth_cfg_t *build_auth_cfg(private_stroke_config_t *this,
        {
                cfg->add(cfg, AUTH_RULE_AUTH_CLASS, AUTH_CLASS_XAUTH_PSK);
        }
+       else if (streq(auth, "xauthrsasig"))
+       {
+               cfg->add(cfg, AUTH_RULE_AUTH_CLASS, AUTH_CLASS_XAUTH_PUBKEY);
+       }
        else if (strneq(auth, "eap", 3))
        {
                enumerator_t *enumerator;