Searched refs:tlv (Results 1 – 4 of 4) sorted by relevance
/hal_espressif-3.6.0/components/wpa_supplicant/src/eap_peer/ |
D | eap_fast_common.c | 148 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv, in eap_fast_parse_tlv() argument 155 if (tlv->eap_payload_tlv) { in eap_fast_parse_tlv() 158 tlv->iresult = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 161 tlv->eap_payload_tlv = pos; in eap_fast_parse_tlv() 162 tlv->eap_payload_tlv_len = len; in eap_fast_parse_tlv() 166 if (tlv->result) { in eap_fast_parse_tlv() 169 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 175 tlv->result = EAP_TLV_RESULT_FAILURE; in eap_fast_parse_tlv() 178 tlv->result = WPA_GET_BE16(pos); in eap_fast_parse_tlv() 179 if (tlv->result != EAP_TLV_RESULT_SUCCESS && in eap_fast_parse_tlv() [all …]
|
D | eap_fast.c | 1072 struct eap_fast_tlv_parse *tlv, in eap_fast_parse_decrypted() argument 1079 os_memset(tlv, 0, sizeof(*tlv)); in eap_fast_parse_decrypted() 1099 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len); in eap_fast_parse_decrypted() 1170 struct eap_fast_tlv_parse tlv; in eap_fast_process_decrypted() local 1173 if (eap_fast_parse_decrypted(decrypted, &tlv, &resp) < 0) in eap_fast_process_decrypted() 1179 if (tlv.result == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted() 1185 if (tlv.iresult == EAP_TLV_RESULT_FAILURE) { in eap_fast_process_decrypted() 1191 if (tlv.crypto_binding) { in eap_fast_process_decrypted() 1193 tlv.crypto_binding, in eap_fast_process_decrypted() 1194 tlv.crypto_binding_len); in eap_fast_process_decrypted() [all …]
|
D | eap_peap.c | 596 struct eap_tlv_hdr *tlv; in eap_peapv2_tlv_eap_payload() local 603 e = wpabuf_alloc(sizeof(*tlv) + wpabuf_len(buf)); in eap_peapv2_tlv_eap_payload() 610 tlv = wpabuf_put(e, sizeof(*tlv)); in eap_peapv2_tlv_eap_payload() 611 tlv->tlv_type = host_to_be16(EAP_TLV_TYPE_MANDATORY | in eap_peapv2_tlv_eap_payload() 613 tlv->length = host_to_be16(wpabuf_len(buf)); in eap_peapv2_tlv_eap_payload() 857 struct eap_tlv_hdr *tlv; in eap_peap_decrypt() local 860 if (wpabuf_len(in_decrypted) < sizeof(*tlv) + sizeof(*hdr)) { in eap_peap_decrypt() 866 tlv = wpabuf_mhead(in_decrypted); in eap_peap_decrypt() 867 if ((be_to_host16(tlv->tlv_type) & 0x3fff) != in eap_peap_decrypt() 873 if (sizeof(*tlv) + be_to_host16(tlv->length) > in eap_peap_decrypt() [all …]
|
D | eap_fast_common.h | 104 int eap_fast_parse_tlv(struct eap_fast_tlv_parse *tlv,
|