]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
eap-peap: Remove dead SoH code from PEAP
authorMartin Willi <martin@revosec.ch>
Thu, 8 May 2014 11:43:07 +0000 (13:43 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 16 May 2014 13:42:07 +0000 (15:42 +0200)
clang complains about the unused variables.

src/libcharon/plugins/eap_peap/eap_peap_avp.c

index f7f634a53d52c42f3ca53e513e0bd2c429bff2e1..3f541ba2355c0535f95360bc5ea20681a60372f2 100644 (file)
@@ -25,8 +25,6 @@ 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;
 
@@ -64,19 +62,6 @@ 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);