Use a second authentication config to configure XAUTH authentication

This commit is contained in:
Martin Willi
2012-03-20 17:31:15 +01:00
parent 69adeb5bf2
commit 96c9159d96
3 changed files with 108 additions and 45 deletions
+2 -6
View 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))
{