#include "includes.h"
#include "hostapd.h"
#include "common.h"
#include "wpa.h"
#include "eloop.h"
#include "sha1.h"
#include "ieee802_1x.h"
#include "eapol_sm.h"
#include "pmksa_cache.h"
Include dependency graph for pmksa_cache.c:
Go to the source code of this file.
Defines | |
#define | PMKID_HASH_SIZE 128 |
#define | PMKID_HASH(pmkid) (unsigned int) ((pmkid)[0] & 0x7f) |
Functions | |
void | rsn_pmkid (const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, u8 *pmkid) |
Calculate PMK identifier. | |
void | pmksa_cache_to_eapol_data (struct rsn_pmksa_cache_entry *entry, struct eapol_state_machine *eapol) |
rsn_pmksa_cache_entry * | pmksa_cache_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) |
Add a PMKSA cache entry. | |
void | pmksa_cache_deinit (struct rsn_pmksa_cache *pmksa) |
Free all entries in PMKSA cache. | |
rsn_pmksa_cache_entry * | pmksa_cache_get (struct rsn_pmksa_cache *pmksa, const u8 *spa, const u8 *pmkid) |
Fetch a PMKSA cache entry. | |
rsn_pmksa_cache * | pmksa_cache_init (void(*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx), void *ctx) |
Initialize PMKSA cache. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file pmksa_cache.c.
|
Add a PMKSA cache entry.
Definition at line 230 of file pmksa_cache.c. Here is the call graph for this function: |
|
Free all entries in PMKSA cache.
Definition at line 303 of file pmksa_cache.c. Here is the call graph for this function: |
|
Fetch a PMKSA cache entry.
Definition at line 332 of file pmksa_cache.c. |
|
Initialize PMKSA cache.
Definition at line 360 of file pmksa_cache.c. |
|
Calculate PMK identifier.
Definition at line 54 of file pmksa_cache.c. Here is the call graph for this function: |