Lines Matching defs:hdr
791 const u8 *pos, *end, *start, *tlvs, *hdr;
814 hdr = wpabuf_head(sm->eap_if.eapRespData);
920 if (hmac_sha256(erp->rIK, erp->rIK_len, hdr,
921 end - hdr - hash_len, hash) < 0)
933 if (hmac_sha256(erp->rIK, erp->rIK_len, hdr,
934 end - hdr - 32, hash) < 0)
945 if (hmac_sha256(erp->rIK, erp->rIK_len, hdr,
946 end - hdr - 16, hash) < 0)
1472 const struct eap_hdr *hdr;
1483 if (resp == NULL || wpabuf_len(resp) < sizeof(*hdr)) {
1490 hdr = wpabuf_head(resp);
1491 plen = be_to_host16(hdr->length);
1500 sm->respId = hdr->identifier;
1502 if (hdr->code == EAP_CODE_RESPONSE)
1504 else if (hdr->code == EAP_CODE_INITIATE)
1507 if (plen > sizeof(*hdr)) {
1508 u8 *pos = (u8 *) (hdr + 1);
1511 if (plen < sizeof(*hdr) + 8) {
1532 const struct eap_hdr *hdr;
1534 if (data == NULL || wpabuf_len(data) < sizeof(*hdr))
1537 hdr = wpabuf_head(data);
1538 wpa_printf(MSG_DEBUG, "EAP: getId: id=%d", hdr->identifier);
1539 return hdr->identifier;
2035 const struct eap_hdr *hdr;
2039 if (len < sizeof(*hdr) + 1)
2041 hdr = (const struct eap_hdr *) eap;
2043 pos = (const u8 *) (hdr + 1);
2044 if (hdr->code != EAP_CODE_INITIATE || *pos != EAP_ERP_TYPE_REAUTH)