Lines Matching refs:hdr1
87 const struct eap_psk_hdr_1 *hdr1; in eap_psk_process_1() local
97 hdr1 = (const struct eap_psk_hdr_1 *) cpos; in eap_psk_process_1()
98 if (cpos == NULL || len < sizeof(*hdr1)) { in eap_psk_process_1()
102 (unsigned long) sizeof(*hdr1)); in eap_psk_process_1()
106 wpa_printf(MSG_DEBUG, "EAP-PSK: Flags=0x%x", hdr1->flags); in eap_psk_process_1()
107 if (EAP_PSK_FLAGS_GET_T(hdr1->flags) != 0) { in eap_psk_process_1()
109 EAP_PSK_FLAGS_GET_T(hdr1->flags)); in eap_psk_process_1()
114 wpa_hexdump(MSG_DEBUG, "EAP-PSK: RAND_S", hdr1->rand_s, in eap_psk_process_1()
116 os_memcpy(data->rand_s, hdr1->rand_s, EAP_PSK_RAND_LEN); in eap_psk_process_1()
118 data->id_s_len = len - sizeof(*hdr1); in eap_psk_process_1()
119 data->id_s = os_memdup(hdr1 + 1, data->id_s_len); in eap_psk_process_1()
142 os_memcpy(hdr2->rand_s, hdr1->rand_s, EAP_PSK_RAND_LEN); in eap_psk_process_1()
156 os_memcpy(pos, hdr1->rand_s, EAP_PSK_RAND_LEN); in eap_psk_process_1()