wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
eap_fast_pac.h
Go to the documentation of this file.
1 
5 #ifndef EAP_FAST_PAC_H
6 #define EAP_FAST_PAC_H
7 
9 
10 struct eap_fast_pac {
11  struct eap_fast_pac *next;
12 
13  u8 pac_key[EAP_FAST_PAC_KEY_LEN];
14  u8 *pac_opaque;
15  size_t pac_opaque_len;
16  u8 *pac_info;
17  size_t pac_info_len;
18  u8 *a_id;
19  size_t a_id_len;
20  u8 *i_id;
21  size_t i_id_len;
22  u8 *a_id_info;
23  size_t a_id_info_len;
24  u16 pac_type;
25 };
26 
27 
28 void eap_fast_free_pac(struct eap_fast_pac *pac);
29 struct eap_fast_pac * eap_fast_get_pac(struct eap_fast_pac *pac_root,
30  const u8 *a_id, size_t a_id_len,
31  u16 pac_type);
32 int eap_fast_add_pac(struct eap_fast_pac **pac_root,
33  struct eap_fast_pac **pac_current,
34  struct eap_fast_pac *entry);
35 int eap_fast_load_pac(struct eap_sm *sm, struct eap_fast_pac **pac_root,
36  const char *pac_file);
37 int eap_fast_save_pac(struct eap_sm *sm, struct eap_fast_pac *pac_root,
38  const char *pac_file);
39 size_t eap_fast_pac_list_truncate(struct eap_fast_pac *pac_root,
40  size_t max_len);
41 int eap_fast_load_pac_bin(struct eap_sm *sm, struct eap_fast_pac **pac_root,
42  const char *pac_file);
43 int eap_fast_save_pac_bin(struct eap_sm *sm, struct eap_fast_pac *pac_root,
44  const char *pac_file);
45 
46 #endif /* EAP_FAST_PAC_H */
int eap_fast_load_pac(struct eap_sm *sm, struct eap_fast_pac **pac_root, const char *pac_file)
Load PAC entries (text format)
Definition: eap_fast_pac.c:408
int eap_fast_load_pac_bin(struct eap_sm *sm, struct eap_fast_pac **pac_root, const char *pac_file)
Load PAC entries (binary format)
Definition: eap_fast_pac.c:746
int eap_fast_save_pac_bin(struct eap_sm *sm, struct eap_fast_pac *pac_root, const char *pac_file)
Save PAC entries (binary format)
Definition: eap_fast_pac.c:869
void eap_fast_free_pac(struct eap_fast_pac *pac)
Free PAC data.
Definition: eap_fast_pac.c:46
struct eap_fast_pac * eap_fast_get_pac(struct eap_fast_pac *pac_root, const u8 *a_id, size_t a_id_len, u16 pac_type)
Get a PAC entry based on A-ID.
Definition: eap_fast_pac.c:65
Definition: eap_fast_pac.h:10
int eap_fast_add_pac(struct eap_fast_pac **pac_root, struct eap_fast_pac **pac_current, struct eap_fast_pac *entry)
Add a copy of a PAC entry to a list.
Definition: eap_fast_pac.c:135
size_t eap_fast_pac_list_truncate(struct eap_fast_pac *pac_root, size_t max_len)
Truncate a PAC list to the given length.
Definition: eap_fast_pac.c:665
EAP state machine data.
Definition: eap_i.h:302
EAP-FAST definitions (RFC 4851)
int eap_fast_save_pac(struct eap_sm *sm, struct eap_fast_pac *pac_root, const char *pac_file)
Save PAC entries (text format)
Definition: eap_fast_pac.c:614