Lines Matching refs:tlv

1361 			       struct eap_teap_tlv_parse *tlv)  in eap_teap_parse_tlvs()  argument
1368 os_memset(tlv, 0, sizeof(*tlv)); in eap_teap_parse_tlvs()
1388 res = eap_teap_parse_tlv(tlv, tlv_type, pos, len); in eap_teap_parse_tlvs()
1518 struct teap_attr_pac_type *tlv; in eap_teap_pac_type() local
1520 if (!pac || len != sizeof(*tlv)) in eap_teap_pac_type()
1523 tlv = (struct teap_attr_pac_type *) pac; in eap_teap_pac_type()
1525 return be_to_host16(tlv->type) == PAC_TYPE_PAC_TYPE && in eap_teap_pac_type()
1526 be_to_host16(tlv->length) == 2 && in eap_teap_pac_type()
1527 be_to_host16(tlv->pac_type) == type; in eap_teap_pac_type()
1535 struct eap_teap_tlv_parse tlv; in eap_teap_process_phase2_tlvs() local
1539 if (eap_teap_parse_tlvs(in_data, &tlv) < 0) { in eap_teap_process_phase2_tlvs()
1545 if (tlv.result == TEAP_STATUS_FAILURE) { in eap_teap_process_phase2_tlvs()
1551 if (tlv.nak) { in eap_teap_process_phase2_tlvs()
1554 WPA_GET_BE32(tlv.nak), WPA_GET_BE16(tlv.nak + 4)); in eap_teap_process_phase2_tlvs()
1562 if (!tlv.pac || tlv.pac_len < 6) { in eap_teap_process_phase2_tlvs()
1569 type = WPA_GET_BE16(tlv.pac); in eap_teap_process_phase2_tlvs()
1570 len = WPA_GET_BE16(tlv.pac + 2); in eap_teap_process_phase2_tlvs()
1571 res = WPA_GET_BE16(tlv.pac + 4); in eap_teap_process_phase2_tlvs()
1588 if (!tlv.crypto_binding) { in eap_teap_process_phase2_tlvs()
1596 tlv.result != TEAP_STATUS_SUCCESS) { in eap_teap_process_phase2_tlvs()
1605 tlv.iresult != TEAP_STATUS_SUCCESS) { in eap_teap_process_phase2_tlvs()
1612 if (eap_teap_validate_crypto_binding(data, tlv.crypto_binding, in eap_teap_process_phase2_tlvs()
1613 tlv.crypto_binding_len)) { in eap_teap_process_phase2_tlvs()
1637 tlv.request_action == TEAP_REQUEST_ACTION_PROCESS_TLV && in eap_teap_process_phase2_tlvs()
1638 eap_teap_pac_type(tlv.pac, tlv.pac_len, in eap_teap_process_phase2_tlvs()
1647 (tlv.request_action == TEAP_REQUEST_ACTION_PROCESS_TLV && in eap_teap_process_phase2_tlvs()
1648 eap_teap_pac_type(tlv.pac, tlv.pac_len, in eap_teap_process_phase2_tlvs()
1664 if (tlv.basic_auth_resp) { in eap_teap_process_phase2_tlvs()
1671 eap_teap_process_basic_auth_resp(sm, data, tlv.basic_auth_resp, in eap_teap_process_phase2_tlvs()
1672 tlv.basic_auth_resp_len, in eap_teap_process_phase2_tlvs()
1673 tlv.identity_type); in eap_teap_process_phase2_tlvs()
1676 if (tlv.eap_payload_tlv) { in eap_teap_process_phase2_tlvs()
1683 eap_teap_process_phase2_eap(sm, data, tlv.eap_payload_tlv, in eap_teap_process_phase2_tlvs()
1684 tlv.eap_payload_tlv_len, in eap_teap_process_phase2_tlvs()
1685 tlv.identity_type); in eap_teap_process_phase2_tlvs()
1689 tlv.result == TEAP_STATUS_SUCCESS) { in eap_teap_process_phase2_tlvs()