Win 7 accepts compressed EAP Identity request
authorAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 21 Apr 2011 17:17:18 +0000 (19:17 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Thu, 21 Apr 2011 17:52:49 +0000 (19:52 +0200)
src/libcharon/plugins/eap_peap/eap_peap_avp.c

index 65a1db0..06e5222 100644 (file)
@@ -53,12 +53,7 @@ METHOD(eap_peap_avp_t, build, void,
 
        pkt = (eap_packet_t*)data.ptr;
 
-       if (pkt->code == EAP_REQUEST && pkt->type == EAP_IDENTITY)
-       {
-               /* uncompressed EAP Identity request */
-               avp_data = data;
-       }
-       else if (pkt->code == EAP_SUCCESS || pkt->code == EAP_FAILURE)
+       if (pkt->code == EAP_SUCCESS || pkt->code == EAP_FAILURE)
        {
                code = (this->is_server) ? EAP_REQUEST : EAP_RESPONSE;
                writer->write_uint8(writer, code);
@@ -95,13 +90,12 @@ METHOD(eap_peap_avp_t, process, status_t,
        {
                if (len == 5 && pkt->type == EAP_IDENTITY)
                {
-                       /* uncompressed EAP Identity request */
+                       DBG2(DBG_IKE, "uncompressed EAP Identity request");
                        *data = chunk_clone(avp_data);
                        return SUCCESS;
                }
                else if (len == 11 && pkt->type == EAP_MSTLV)
                {
-                       /* currently only MS Success/Failure AVPs are supported */
                        if (memeq(&pkt->data, MS_AVP_Success.ptr, MS_AVP_Success.len))
                        {
                                DBG2(DBG_IKE, "MS Success Result AVP");