Lines Matching refs:tlv
25 /* Private PAC-Opaque TLV types */
114 /* TODO: send Result TLV(FAILURE) */
611 wpa_printf(MSG_DEBUG, "EAP-FAST: Add Intermediate-Result TLV "
622 /* Result TLV */
623 wpa_printf(MSG_DEBUG, "EAP-FAST: Add Result TLV "
632 /* Crypto-Binding TLV */
658 * Compound-MAC = HMAC-SHA1( CMK, Crypto-Binding TLV )
665 wpa_printf(MSG_DEBUG, "EAP-FAST: Add Crypto-Binding TLV: Version %d "
756 /* Result TLV */
757 wpa_printf(MSG_DEBUG, "EAP-FAST: Add Result TLV (status=SUCCESS)");
764 /* PAC TLV */
765 wpa_printf(MSG_DEBUG, "EAP-FAST: Add PAC TLV");
803 /* Update PAC-Info and PAC TLV Length fields */
1125 struct eap_fast_tlv_parse *tlv)
1131 os_memset(tlv, 0, sizeof(*tlv));
1142 wpa_printf(MSG_INFO, "EAP-FAST: TLV overflow");
1146 "TLV type %d length %u%s",
1150 res = eap_fast_parse_tlv(tlv, tlv_type, pos, len);
1156 "mandatory TLV type %d", tlv_type);
1157 /* TODO: generate Nak TLV */
1161 "unknown optional TLV type %d",
1179 wpa_printf(MSG_DEBUG, "EAP-FAST: Reply Crypto-Binding TLV: "
1211 wpa_hexdump(MSG_MSGDUMP, "EAP-FAST: Crypto-Binding TLV for "
1231 struct eap_tlv_pac_type_tlv *tlv;
1233 if (pac == NULL || len != sizeof(*tlv))
1236 tlv
1238 return be_to_host16(tlv->tlv_type) == PAC_TYPE_PAC_TYPE &&
1239 be_to_host16(tlv->length) == 2 &&
1240 be_to_host16(tlv->pac_type) == type;
1248 struct eap_fast_tlv_parse tlv;
1251 if (eap_fast_parse_tlvs(in_data, &tlv) < 0) {
1257 if (tlv.result == EAP_TLV_RESULT_FAILURE) {
1258 wpa_printf(MSG_DEBUG, "EAP-FAST: Result TLV indicated "
1266 if (tlv.pac == NULL || tlv.pac_len < 6) {
1273 type = WPA_GET_BE16(tlv.pac);
1274 len = WPA_GET_BE16(tlv.pac + 2);
1275 res = WPA_GET_BE16(tlv.pac + 4);
1279 wpa_printf(MSG_DEBUG, "EAP-FAST: PAC TLV did not "
1294 if (tlv.crypto_binding == NULL) {
1296 "TLV received");
1302 tlv.result != EAP_TLV_RESULT_SUCCESS) {
1303 wpa_printf(MSG_DEBUG, "EAP-FAST: Crypto-Binding TLV "
1310 tlv.iresult != EAP_TLV_RESULT_SUCCESS) {
1311 wpa_printf(MSG_DEBUG, "EAP-FAST: Crypto-Binding TLV "
1317 if (eap_fast_validate_crypto_binding(data, tlv.crypto_binding,
1318 tlv.crypto_binding_len)) {
1323 wpa_printf(MSG_DEBUG, "EAP-FAST: Valid Crypto-Binding TLV "
1342 tlv.request_action == EAP_TLV_ACTION_PROCESS_TLV &&
1343 eap_fast_pac_type(tlv.pac, tlv.pac_len,
1353 (tlv.request_action == EAP_TLV_ACTION_PROCESS_TLV &&
1354 eap_fast_pac_type(tlv.pac, tlv.pac_len,
1367 if (tlv.eap_payload_tlv) {
1368 eap_fast_process_phase2_eap(sm, data, tlv.eap_payload_tlv,
1369 tlv.eap_payload_tlv_len);