Lines Matching refs:pac
61 struct eap_teap_pac *pac; member
215 eap_teap_load_pac_bin(sm, &data->pac, config->pac_file) < 0) { in eap_teap_init()
222 eap_teap_load_pac(sm, &data->pac, config->pac_file) < 0) { in eap_teap_init()
227 eap_teap_pac_list_truncate(data->pac, data->max_pac_list_len); in eap_teap_init()
255 struct eap_teap_pac *pac, *prev; in eap_teap_deinit() local
265 pac = data->pac; in eap_teap_deinit()
267 while (pac) { in eap_teap_deinit()
268 prev = pac; in eap_teap_deinit()
269 pac = pac->next; in eap_teap_deinit()
966 u8 *pac, size_t pac_len) in eap_teap_process_pac_tlv() argument
973 pos = pac; in eap_teap_process_pac_tlv()
1133 u8 *pac, size_t pac_len) in eap_teap_process_pac() argument
1139 if (eap_teap_process_pac_tlv(&entry, pac, pac_len) || in eap_teap_process_pac()
1143 eap_teap_add_pac(&data->pac, &data->current_pac, &entry); in eap_teap_process_pac()
1144 eap_teap_pac_list_truncate(data->pac, data->max_pac_list_len); in eap_teap_process_pac()
1146 eap_teap_save_pac_bin(sm, data->pac, config->pac_file); in eap_teap_process_pac()
1148 eap_teap_save_pac(sm, data->pac, config->pac_file); in eap_teap_process_pac()
1215 struct teap_tlv_hdr *pac; in eap_teap_pac_request() local
1218 req = wpabuf_alloc(sizeof(*act) + sizeof(*pac) + sizeof(*type)); in eap_teap_pac_request()
1230 pac = wpabuf_put(req, sizeof(*pac)); in eap_teap_pac_request()
1231 pac->tlv_type = host_to_be16(TEAP_TLV_PAC); in eap_teap_pac_request()
1232 pac->length = host_to_be16(sizeof(*type)); in eap_teap_pac_request()
1409 if (tlv.pac) { in eap_teap_process_decrypted()
1412 tlv.pac, tlv.pac_len); in eap_teap_process_decrypted()
1422 if (!data->current_pac && data->provisioning && !failed && !tlv.pac && in eap_teap_process_decrypted()
1570 data->current_pac = eap_teap_get_pac(data->pac, a_id, a_id_len, in eap_teap_select_pac()
1585 struct eap_teap_pac *pac) in eap_teap_use_pac_opaque() argument
1592 olen = pac->pac_opaque_len; in eap_teap_use_pac_opaque()
1599 os_memcpy(ehdr + 1, pac->pac_opaque, olen); in eap_teap_use_pac_opaque()