diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-06-09 08:56:45 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-06-09 08:56:55 +0200 |
commit | ac592f23870e2e20bc5e80faff924c6e7b13e917 (patch) | |
tree | 8b1f75208f44464624a78f21df7702b1e7091b74 /src/libcharon/plugins/eap_peap/eap_peap_avp.c | |
parent | fbdef639d6ed3500bda9e330a2f57de5e833750c (diff) | |
download | strongswan-ac592f23870e2e20bc5e80faff924c6e7b13e917.tar.bz2 strongswan-ac592f23870e2e20bc5e80faff924c6e7b13e917.tar.xz |
unfinished MS SoH Request
Diffstat (limited to 'src/libcharon/plugins/eap_peap/eap_peap_avp.c')
-rw-r--r-- | src/libcharon/plugins/eap_peap/eap_peap_avp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libcharon/plugins/eap_peap/eap_peap_avp.c b/src/libcharon/plugins/eap_peap/eap_peap_avp.c index c45a5e288..10f6ec11c 100644 --- a/src/libcharon/plugins/eap_peap/eap_peap_avp.c +++ b/src/libcharon/plugins/eap_peap/eap_peap_avp.c @@ -25,6 +25,8 @@ static const chunk_t MS_AVP_Success = chunk_from_chars( 0x80, 0x03, 0x00, 0x02, 0x00, 0x01); static const chunk_t MS_AVP_Failure = chunk_from_chars( 0x80, 0x03, 0x00, 0x02, 0x00, 0x02); +static const chunk_t MS_SoH_Request = chunk_from_chars( + 0x00, 0x01, 0x37, 0x00, 0x00, 0x00, 0x21, 0x00, 0x02, 0x00, 0x00); typedef struct private_eap_peap_avp_t private_eap_peap_avp_t; @@ -62,6 +64,19 @@ METHOD(eap_peap_avp_t, build, void, writer->write_uint8(writer, EAP_MSTLV); avp_data = (pkt->code == EAP_SUCCESS) ? MS_AVP_Success : MS_AVP_Failure; } + /** + * Still trying to form a correct MS SoH Request + * + else if (pkt->type == EAP_MSCHAPV2) + { + code = (this->is_server) ? EAP_REQUEST : EAP_RESPONSE; + writer->write_uint8(writer, code); + writer->write_uint8(writer, pkt->identifier); + writer->write_uint16(writer, 16); + writer->write_uint8(writer, EAP_EXPANDED); + avp_data = MS_SoH_Request; + } + */ else { avp_data = chunk_skip(data, 4); |