Lines Matching refs:hdr3
181 const struct eap_psk_hdr_3 *hdr3; in eap_psk_process_3() local
195 hdr3 = (const struct eap_psk_hdr_3 *) pos; in eap_psk_process_3()
196 if (pos == NULL || len < sizeof(*hdr3)) { in eap_psk_process_3()
200 (unsigned long) sizeof(*hdr3)); in eap_psk_process_3()
204 left = len - sizeof(*hdr3); in eap_psk_process_3()
205 pchannel = (const u8 *) (hdr3 + 1); in eap_psk_process_3()
206 wpa_printf(MSG_DEBUG, "EAP-PSK: Flags=0x%x", hdr3->flags); in eap_psk_process_3()
207 if (EAP_PSK_FLAGS_GET_T(hdr3->flags) != 2) { in eap_psk_process_3()
209 EAP_PSK_FLAGS_GET_T(hdr3->flags)); in eap_psk_process_3()
214 wpa_hexdump(MSG_DEBUG, "EAP-PSK: RAND_S", hdr3->rand_s, in eap_psk_process_3()
216 wpa_hexdump(MSG_DEBUG, "EAP-PSK: MAC_S", hdr3->mac_s, EAP_PSK_MAC_LEN); in eap_psk_process_3()
239 if (os_memcmp_const(mac, hdr3->mac_s, EAP_PSK_MAC_LEN) != 0) { in eap_psk_process_3()
285 sizeof(*hdr3) - EAP_PSK_MAC_LEN, decrypted, in eap_psk_process_3()
323 os_memcpy(hdr4->rand_s, hdr3->rand_s, EAP_PSK_RAND_LEN); in eap_psk_process_3()