wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pmksa_cache_auth.h
Go to the documentation of this file.
1 
5 #ifndef PMKSA_CACHE_H
6 #define PMKSA_CACHE_H
7 
8 #include "radius/radius.h"
9 
15  struct rsn_pmksa_cache_entry *next, *hnext;
16  u8 pmkid[PMKID_LEN];
17  u8 pmk[PMK_LEN];
18  size_t pmk_len;
19  os_time_t expiration;
20  int akmp; /* WPA_KEY_MGMT_* */
21  u8 spa[ETH_ALEN];
22 
23  u8 *identity;
24  size_t identity_len;
25  struct wpabuf *cui;
26  struct radius_class_data radius_class;
27  u8 eap_type_authsrv;
28  int vlan_id;
29  int opportunistic;
30 
31  u32 acct_multi_session_id_hi;
32  u32 acct_multi_session_id_lo;
33 };
34 
35 struct rsn_pmksa_cache;
36 
37 struct rsn_pmksa_cache *
38 pmksa_cache_auth_init(void (*free_cb)(struct rsn_pmksa_cache_entry *entry,
39  void *ctx), void *ctx);
40 void pmksa_cache_auth_deinit(struct rsn_pmksa_cache *pmksa);
41 struct rsn_pmksa_cache_entry *
43  const u8 *spa, const u8 *pmkid);
45  struct rsn_pmksa_cache *pmksa, const u8 *spa, const u8 *aa,
46  const u8 *pmkid);
47 struct rsn_pmksa_cache_entry *
49  const u8 *pmk, size_t pmk_len,
50  const u8 *kck, size_t kck_len,
51  const u8 *aa, const u8 *spa, int session_timeout,
52  struct eapol_state_machine *eapol, int akmp);
53 struct rsn_pmksa_cache_entry *
54 pmksa_cache_add_okc(struct rsn_pmksa_cache *pmksa,
55  const struct rsn_pmksa_cache_entry *old_entry,
56  const u8 *aa, const u8 *pmkid);
57 void pmksa_cache_to_eapol_data(struct rsn_pmksa_cache_entry *entry,
58  struct eapol_state_machine *eapol);
59 void pmksa_cache_free_entry(struct rsn_pmksa_cache *pmksa,
60  struct rsn_pmksa_cache_entry *entry);
61 int pmksa_cache_auth_radius_das_disconnect(struct rsn_pmksa_cache *pmksa,
62  struct radius_das_attrs *attr);
63 
64 #endif /* PMKSA_CACHE_H */
RADIUS message processing.
void pmksa_cache_auth_deinit(struct rsn_pmksa_cache *pmksa)
Free all entries in PMKSA cache.
Definition: pmksa_cache_auth.c:349
struct rsn_pmksa_cache * pmksa_cache_auth_init(void(*free_cb)(struct rsn_pmksa_cache_entry *entry, void *ctx), void *ctx)
Initialize PMKSA cache.
Definition: pmksa_cache_auth.c:441
Definition: wpabuf.h:16
Definition: pmksa_cache_auth.c:20
struct rsn_pmksa_cache_entry * pmksa_cache_get_okc(struct rsn_pmksa_cache *pmksa, const u8 *spa, const u8 *aa, const u8 *pmkid)
Fetch a PMKSA cache entry using OKC.
Definition: pmksa_cache_auth.c:415
Per-Supplicant Authenticator state machines.
Definition: eapol_auth_sm_i.h:40
struct rsn_pmksa_cache_entry * pmksa_cache_auth_get(struct rsn_pmksa_cache *pmksa, const u8 *spa, const u8 *pmkid)
Fetch a PMKSA cache entry.
Definition: pmksa_cache_auth.c:380
PMKSA cache entry.
Definition: pmksa_cache_auth.h:14
struct rsn_pmksa_cache_entry * pmksa_cache_auth_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, const u8 *kck, size_t kck_len, const u8 *aa, const u8 *spa, int session_timeout, struct eapol_state_machine *eapol, int akmp)
Add a PMKSA cache entry.
Definition: pmksa_cache_auth.c:248
Definition: radius.h:307
Definition: radius_das.h:17