$search
#include "eap_common/eap_fast_common.h"
Go to the source code of this file.
Classes | |
struct | eap_fast_pac |
Functions | |
int | eap_fast_add_pac (struct eap_fast_pac **pac_root, struct eap_fast_pac **pac_current, struct eap_fast_pac *entry) |
void | eap_fast_free_pac (struct eap_fast_pac *pac) |
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) |
int | eap_fast_load_pac (struct eap_sm *sm, struct eap_fast_pac **pac_root, const char *pac_file) |
int | eap_fast_load_pac_bin (struct eap_sm *sm, struct eap_fast_pac **pac_root, const char *pac_file) |
size_t | eap_fast_pac_list_truncate (struct eap_fast_pac *pac_root, size_t max_len) |
int | eap_fast_save_pac (struct eap_sm *sm, struct eap_fast_pac *pac_root, const char *pac_file) |
int | eap_fast_save_pac_bin (struct eap_sm *sm, struct eap_fast_pac *pac_root, const char *pac_file) |
int eap_fast_add_pac | ( | struct eap_fast_pac ** | pac_root, | |
struct eap_fast_pac ** | pac_current, | |||
struct eap_fast_pac * | entry | |||
) |
eap_fast_add_pac - Add a copy of a PAC entry to a list : Pointer to PAC list root pointer : Pointer to the current PAC pointer : New entry to clone and add to the list Returns: 0 on success, -1 on failure
This function makes a clone of the given PAC entry and adds this copied entry to the list (pac_root). If an old entry for the same A-ID is found, it will be removed from the PAC list and in this case, pac_current entry is set to NULL if it was the removed entry.
Definition at line 145 of file eap_fast_pac.c.
void eap_fast_free_pac | ( | struct eap_fast_pac * | pac | ) |
eap_fast_free_pac - Free PAC data : Pointer to the PAC entry
Note that the PAC entry must not be in a list since this function does not remove the list links.
Definition at line 56 of file eap_fast_pac.c.
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 | |||
) | [read] |
eap_fast_get_pac - Get a PAC entry based on A-ID : Pointer to root of the PAC list : A-ID to search for : Length of A-ID : PAC-Type to search for Returns: Pointer to the PAC entry, or NULL if A-ID not found
Definition at line 75 of file eap_fast_pac.c.
int eap_fast_load_pac | ( | struct eap_sm * | sm, | |
struct eap_fast_pac ** | pac_root, | |||
const char * | pac_file | |||
) |
eap_fast_load_pac - Load PAC entries (text format) : Pointer to EAP state machine allocated with eap_peer_sm_init() : Pointer to root of the PAC list (to be filled) : Name of the PAC file/blob to load Returns: 0 on success, -1 on failure
Definition at line 416 of file eap_fast_pac.c.
int eap_fast_load_pac_bin | ( | struct eap_sm * | sm, | |
struct eap_fast_pac ** | pac_root, | |||
const char * | pac_file | |||
) |
eap_fast_load_pac_bin - Load PAC entries (binary format) : Pointer to EAP state machine allocated with eap_peer_sm_init() : Pointer to root of the PAC list (to be filled) : Name of the PAC file/blob to load Returns: 0 on success, -1 on failure
Definition at line 749 of file eap_fast_pac.c.
size_t eap_fast_pac_list_truncate | ( | struct eap_fast_pac * | pac_root, | |
size_t | max_len | |||
) |
eap_fast_pac_list_truncate - Truncate a PAC list to the given length : Root of the PAC list : Maximum length of the list (>= 1) Returns: Number of PAC entries removed
Definition at line 668 of file eap_fast_pac.c.
int eap_fast_save_pac | ( | struct eap_sm * | sm, | |
struct eap_fast_pac * | pac_root, | |||
const char * | pac_file | |||
) |
eap_fast_save_pac - Save PAC entries (text format) : Pointer to EAP state machine allocated with eap_peer_sm_init() : Root of the PAC list : Name of the PAC file/blob Returns: 0 on success, -1 on failure
Definition at line 617 of file eap_fast_pac.c.
int eap_fast_save_pac_bin | ( | struct eap_sm * | sm, | |
struct eap_fast_pac * | pac_root, | |||
const char * | pac_file | |||
) |
eap_fast_save_pac_bin - Save PAC entries (binary format) : Pointer to EAP state machine allocated with eap_peer_sm_init() : Root of the PAC list : Name of the PAC file/blob Returns: 0 on success, -1 on failure
Definition at line 866 of file eap_fast_pac.c.