aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-08-20 18:35:23 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-20 18:38:16 +0200
commite79b0e07e4abb9c6005c5706f2638298f86fd499 (patch)
tree9a27a07e6065361d107693c1b714bb4c43725307
parent5fee79d854dbae9fdd3178d07102487c53baf72f (diff)
downloadstrongswan-e79b0e07e4ab.tar.bz2
strongswan-e79b0e07e4ab.tar.xz
auth-cfg: Don't enforce EAP_DYNAMIC
We now store the actual method on the auth config, which won't match anymore if rightauth=eap-dynamic is configured.
-rw-r--r--src/libstrongswan/credentials/auth_cfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstrongswan/credentials/auth_cfg.c b/src/libstrongswan/credentials/auth_cfg.c
index 9b5763150..1de221397 100644
--- a/src/libstrongswan/credentials/auth_cfg.c
+++ b/src/libstrongswan/credentials/auth_cfg.c
@@ -661,7 +661,8 @@ METHOD(auth_cfg_t, complies, bool,
}
case AUTH_RULE_EAP_TYPE:
{
- if ((uintptr_t)value != (uintptr_t)get(this, t1))
+ if ((uintptr_t)value != (uintptr_t)get(this, t1) &&
+ (uintptr_t)value != EAP_DYNAMIC)
{
success = FALSE;
if (log_error)