Use a second authentication config to configure XAUTH authentication
[strongswan.git] / src / libcharon / plugins / stroke / stroke_config.c
index 0d612f1..f1af65e 100644 (file)
@@ -469,13 +469,9 @@ static auth_cfg_t *build_auth_cfg(private_stroke_config_t *this,
        {
                cfg->add(cfg, AUTH_RULE_AUTH_CLASS, AUTH_CLASS_PSK);
        }
-       else if (streq(auth, "xauthpsk"))
+       else if (streq(auth, "xauth"))
        {
-               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);
+               cfg->add(cfg, AUTH_RULE_AUTH_CLASS, AUTH_CLASS_XAUTH);
        }
        else if (strneq(auth, "eap", 3))
        {