From e79b0e07e4abb9c6005c5706f2638298f86fd499 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 20 Aug 2015 18:35:23 +0200 Subject: [PATCH] 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. --- src/libstrongswan/credentials/auth_cfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstrongswan/credentials/auth_cfg.c b/src/libstrongswan/credentials/auth_cfg.c index 9b5763150e..1de2213971 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) -- 2.47.2