wpa_supplicant / hostapd 2.0

eap_fast_pac.h

Go to the documentation of this file.
00001 
00010 #ifndef EAP_FAST_PAC_H
00011 #define EAP_FAST_PAC_H
00012 
00013 #include "eap_common/eap_fast_common.h"
00014 
00015 struct eap_fast_pac {
00016         struct eap_fast_pac *next;
00017 
00018         u8 pac_key[EAP_FAST_PAC_KEY_LEN];
00019         u8 *pac_opaque;
00020         size_t pac_opaque_len;
00021         u8 *pac_info;
00022         size_t pac_info_len;
00023         u8 *a_id;
00024         size_t a_id_len;
00025         u8 *i_id;
00026         size_t i_id_len;
00027         u8 *a_id_info;
00028         size_t a_id_info_len;
00029         u16 pac_type;
00030 };
00031 
00032 
00033 void eap_fast_free_pac(struct eap_fast_pac *pac);
00034 struct eap_fast_pac * eap_fast_get_pac(struct eap_fast_pac *pac_root,
00035                                        const u8 *a_id, size_t a_id_len,
00036                                        u16 pac_type);
00037 int eap_fast_add_pac(struct eap_fast_pac **pac_root,
00038                      struct eap_fast_pac **pac_current,
00039                      struct eap_fast_pac *entry);
00040 int eap_fast_load_pac(struct eap_sm *sm, struct eap_fast_pac **pac_root,
00041                       const char *pac_file);
00042 int eap_fast_save_pac(struct eap_sm *sm, struct eap_fast_pac *pac_root,
00043                       const char *pac_file);
00044 size_t eap_fast_pac_list_truncate(struct eap_fast_pac *pac_root,
00045                                   size_t max_len);
00046 int eap_fast_load_pac_bin(struct eap_sm *sm, struct eap_fast_pac **pac_root,
00047                           const char *pac_file);
00048 int eap_fast_save_pac_bin(struct eap_sm *sm, struct eap_fast_pac *pac_root,
00049                           const char *pac_file);
00050 
00051 #endif /* EAP_FAST_PAC_H */
00052 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines