diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-08-21 16:54:21 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-08-31 11:40:27 +0200 |
commit | af04233e1451c02dcda2582cd369481b03f21974 (patch) | |
tree | 31212980158b5b4cb5db2a07cd30a2c45a8243f3 /src/libcharon/plugins/eap_ttls/eap_ttls_peer.c | |
parent | 7cad171da8a67a61cce493d90206723dfc47d510 (diff) | |
download | strongswan-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.c | 5 |
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; } |