auth-cfg: Don't enforce EAP_RADIUS
authorTobias Brunner <tobias@strongswan.org>
Fri, 21 Aug 2015 09:40:07 +0000 (11:40 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 21 Aug 2015 09:40:07 +0000 (11:40 +0200)
Basically the same as e79b0e07e4ab.  EAP_RADIUS is also a virtual method
that will identify itself as a different EAP method later.

src/libstrongswan/credentials/auth_cfg.c

index 1de2213..1e93f02 100644 (file)
@@ -662,7 +662,8 @@ METHOD(auth_cfg_t, complies, bool,
                        case AUTH_RULE_EAP_TYPE:
                        {
                                if ((uintptr_t)value != (uintptr_t)get(this, t1) &&
-                                       (uintptr_t)value != EAP_DYNAMIC)
+                                       (uintptr_t)value != EAP_DYNAMIC &&
+                                       (uintptr_t)value != EAP_RADIUS)
                                {
                                        success = FALSE;
                                        if (log_error)