Classes | Functions
pmksa_cache_auth.h File Reference
#include "radius/radius.h"
Include dependency graph for pmksa_cache_auth.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rsn_pmksa_cache_entry

Functions

struct rsn_pmksa_cache_entrypmksa_cache_add_okc (struct rsn_pmksa_cache *pmksa, const struct rsn_pmksa_cache_entry *old_entry, const u8 *aa, const u8 *pmkid)
struct rsn_pmksa_cache_entrypmksa_cache_auth_add (struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, int session_timeout, struct eapol_state_machine *eapol, int akmp)
void pmksa_cache_auth_deinit (struct rsn_pmksa_cache *pmksa)
struct rsn_pmksa_cache_entrypmksa_cache_auth_get (struct rsn_pmksa_cache *pmksa, const u8 *spa, const u8 *pmkid)
struct rsn_pmksa_cachepmksa_cache_auth_init (void(*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx), void *ctx)
struct rsn_pmksa_cache_entrypmksa_cache_get_okc (struct rsn_pmksa_cache *pmksa, const u8 *spa, const u8 *aa, const u8 *pmkid)
void pmksa_cache_to_eapol_data (struct rsn_pmksa_cache_entry *entry, struct eapol_state_machine *eapol)

Function Documentation

struct rsn_pmksa_cache_entry* pmksa_cache_add_okc ( struct rsn_pmksa_cache pmksa,
const struct rsn_pmksa_cache_entry old_entry,
const u8 *  aa,
const u8 *  pmkid 
) [read]

Definition at line 284 of file pmksa_cache_auth.c.

struct rsn_pmksa_cache_entry* pmksa_cache_auth_add ( struct rsn_pmksa_cache pmksa,
const u8 *  pmk,
size_t  pmk_len,
const u8 *  aa,
const u8 *  spa,
int  session_timeout,
struct eapol_state_machine eapol,
int  akmp 
) [read]

pmksa_cache_auth_add - Add a PMKSA cache entry : Pointer to PMKSA cache data from pmksa_cache_auth_init() : The new pairwise master key : PMK length in bytes, usually PMK_LEN (32) : Authenticator address : Supplicant address : Session timeout : Pointer to EAPOL state machine data : WPA_KEY_MGMT_* used in key derivation Returns: Pointer to the added PMKSA cache entry or NULL on error

This function create a PMKSA entry for a new PMK and adds it to the PMKSA cache. If an old entry is already in the cache for the same Supplicant, this entry will be replaced with the new entry. PMKID will be calculated based on the PMK.

Definition at line 235 of file pmksa_cache_auth.c.

void pmksa_cache_auth_deinit ( struct rsn_pmksa_cache pmksa)

pmksa_cache_auth_deinit - Free all entries in PMKSA cache : Pointer to PMKSA cache data from pmksa_cache_auth_init()

Definition at line 325 of file pmksa_cache_auth.c.

struct rsn_pmksa_cache_entry* pmksa_cache_auth_get ( struct rsn_pmksa_cache pmksa,
const u8 *  spa,
const u8 *  pmkid 
) [read]

pmksa_cache_auth_get - Fetch a PMKSA cache entry : Pointer to PMKSA cache data from pmksa_cache_auth_init() : Supplicant address or NULL to match any : PMKID or NULL to match any Returns: Pointer to PMKSA cache entry or NULL if no match was found

Definition at line 354 of file pmksa_cache_auth.c.

struct rsn_pmksa_cache* pmksa_cache_auth_init ( void(*)(struct rsn_pmksa_cache_entry *entry, void *ctx)  free_cb,
void *  ctx 
) [read]

pmksa_cache_auth_init - Initialize PMKSA cache : Callback function to be called when a PMKSA cache entry is freed : Context pointer for free_cb function Returns: Pointer to PMKSA cache data or NULL on failure

Definition at line 413 of file pmksa_cache_auth.c.

struct rsn_pmksa_cache_entry* pmksa_cache_get_okc ( struct rsn_pmksa_cache pmksa,
const u8 *  aa,
const u8 *  spa,
const u8 *  pmkid 
) [read]

pmksa_cache_get_okc - Fetch a PMKSA cache entry using OKC : Pointer to PMKSA cache data from pmksa_cache_auth_init() : Authenticator address : Supplicant address : PMKID Returns: Pointer to PMKSA cache entry or NULL if no match was found

Use opportunistic key caching (OKC) to find a PMK for a supplicant.

Definition at line 385 of file pmksa_cache_auth.c.

void pmksa_cache_to_eapol_data ( struct rsn_pmksa_cache_entry entry,
struct eapol_state_machine eapol 
)

Definition at line 154 of file pmksa_cache_auth.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:39