ikev2: Merge EAP client authentication details if EAP methods provides them
authorMartin Willi <martin@revosec.ch>
Thu, 29 Jan 2015 10:21:00 +0000 (11:21 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 3 Mar 2015 13:08:00 +0000 (14:08 +0100)
src/libcharon/sa/ikev2/authenticators/eap_authenticator.c

index eed6d19..ebef319 100644 (file)
@@ -522,6 +522,13 @@ METHOD(authenticator_t, process_server, status_t,
                {
                        return FAILED;
                }
+               if (this->method->get_auth)
+               {
+                       auth_cfg_t *auth;
+
+                       auth = this->ike_sa->get_auth_cfg(this->ike_sa, FALSE);
+                       auth->merge(auth, this->method->get_auth(this->method), FALSE);
+               }
                return NEED_MORE;
        }