aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-08-21 16:54:21 +0200
committerTobias Brunner <tobias@strongswan.org>2012-08-31 11:40:27 +0200
commitaf04233e1451c02dcda2582cd369481b03f21974 (patch)
tree31212980158b5b4cb5db2a07cd30a2c45a8243f3 /src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
parent7cad171da8a67a61cce493d90206723dfc47d510 (diff)
downloadstrongswan-af04233e1451c02dcda2582cd369481b03f21974.tar.bz2
strongswan-af04233e1451c02dcda2582cd369481b03f21974.tar.xz
Send EAP-Nak with supported types if requested type is unsupported
Diffstat (limited to 'src/libcharon/plugins/eap_ttls/eap_ttls_peer.c')
-rw-r--r--src/libcharon/plugins/eap_ttls/eap_ttls_peer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c b/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
index 767111b3e..59366b490 100644
--- a/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
+++ b/src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
@@ -138,7 +138,7 @@ METHOD(tls_application_t, process, status_t,
chunk_free(&avp_data);
}
while (eap_pos < eap_data.len);
-
+
in = eap_payload_create_data(eap_data);
chunk_free(&eap_data);
payload = (payload_t*)in;
@@ -192,7 +192,8 @@ METHOD(tls_application_t, process, status_t,
if (!this->method)
{
DBG1(DBG_IKE, "EAP method not supported");
- this->out = eap_payload_create_nak(in->get_identifier(in));
+ this->out = eap_payload_create_nak(in->get_identifier(in),
+ received_vendor != 0);
in->destroy(in);
return NEED_MORE;
}