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_peap/eap_peap_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_peap/eap_peap_peer.c')
-rw-r--r-- | src/libcharon/plugins/eap_peap/eap_peap_peer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcharon/plugins/eap_peap/eap_peap_peer.c b/src/libcharon/plugins/eap_peap/eap_peap_peer.c index 72e201fb6..96d4d0f30 100644 --- a/src/libcharon/plugins/eap_peap/eap_peap_peer.c +++ b/src/libcharon/plugins/eap_peap/eap_peap_peer.c @@ -85,7 +85,7 @@ METHOD(tls_application_t, process, status_t, default: return FAILED; } - + in = eap_payload_create_data(data); DBG3(DBG_IKE, "%B", &data); chunk_free(&data); @@ -151,7 +151,8 @@ METHOD(tls_application_t, process, status_t, if (!this->ph2_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; } |