From: Martin Willi Date: Thu, 29 Jan 2015 10:21:00 +0000 (+0100) Subject: ikev2: Merge EAP client authentication details if EAP methods provides them X-Git-Tag: 5.3.0dr1~46^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c608316ddae4be1b65a3a00903971dbedef720a;p=thirdparty%2Fstrongswan.git ikev2: Merge EAP client authentication details if EAP methods provides them --- diff --git a/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c b/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c index eed6d1996d..ebef319300 100644 --- a/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c +++ b/src/libcharon/sa/ikev2/authenticators/eap_authenticator.c @@ -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; }