aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/sa/tasks/ike_auth.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-12-13 17:31:21 +0000
committerMartin Willi <martin@strongswan.org>2007-12-13 17:31:21 +0000
commit0f806802aea51df549dcde331f3df1975aa83aea (patch)
tree45b5a23d75e3f914180264876c724c80eae9ce65 /src/charon/sa/tasks/ike_auth.c
parent3243ac6d5e9d24508dcf8ba03895091f4b4ba424 (diff)
downloadstrongswan-0f806802aea51df549dcde331f3df1975aa83aea.tar.bz2
strongswan-0f806802aea51df549dcde331f3df1975aa83aea.tar.xz
implemented Expanded EAP types to support vendor specific methods
Diffstat (limited to 'src/charon/sa/tasks/ike_auth.c')
-rw-r--r--src/charon/sa/tasks/ike_auth.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/charon/sa/tasks/ike_auth.c b/src/charon/sa/tasks/ike_auth.c
index 29c38ee83..de88a0abe 100644
--- a/src/charon/sa/tasks/ike_auth.c
+++ b/src/charon/sa/tasks/ike_auth.c
@@ -548,6 +548,7 @@ static status_t build_r(private_ike_auth_t *this, message_t *message)
{
peer_cfg_t *config;
eap_type_t eap_type;
+ u_int32_t eap_vendor;
eap_payload_t *eap_payload;
status_t status;
@@ -592,10 +593,11 @@ static status_t build_r(private_ike_auth_t *this, message_t *message)
message->add_notify(message, TRUE, AUTHENTICATION_FAILED, chunk_empty);
return FAILED;
}
-
+
/* initiate EAP authenitcation */
- eap_type = config->get_eap_type(config);
- status = this->eap_auth->initiate(this->eap_auth, eap_type, &eap_payload);
+ eap_type = config->get_eap_type(config, &eap_vendor);
+ status = this->eap_auth->initiate(this->eap_auth, eap_type,
+ eap_vendor, &eap_payload);
message->add_payload(message, (payload_t*)eap_payload);
if (status != NEED_MORE)
{