pmksa_cache.h

Go to the documentation of this file.
00001 
00016 #ifndef PMKSA_CACHE_H
00017 #define PMKSA_CACHE_H
00018 
00023 struct rsn_pmksa_cache_entry {
00024         struct rsn_pmksa_cache_entry *next, *hnext;
00025         u8 pmkid[PMKID_LEN];
00026         u8 pmk[PMK_LEN];
00027         size_t pmk_len;
00028         os_time_t expiration;
00029         int akmp; /* WPA_KEY_MGMT_* */
00030         u8 spa[ETH_ALEN];
00031 
00032         u8 *identity;
00033         size_t identity_len;
00034         struct radius_class_data radius_class;
00035         u8 eap_type_authsrv;
00036         int vlan_id;
00037 };
00038 
00039 struct rsn_pmksa_cache;
00040 
00041 struct rsn_pmksa_cache *
00042 pmksa_cache_init(void (*free_cb)(struct rsn_pmksa_cache_entry *entry,
00043                                  void *ctx), void *ctx);
00044 void pmksa_cache_deinit(struct rsn_pmksa_cache *pmksa);
00045 struct rsn_pmksa_cache_entry * pmksa_cache_get(struct rsn_pmksa_cache *pmksa,
00046                                                const u8 *spa, const u8 *pmkid);
00047 struct rsn_pmksa_cache_entry *
00048 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
00049                 const u8 *aa, const u8 *spa, int session_timeout,
00050                 struct eapol_state_machine *eapol);
00051 void pmksa_cache_to_eapol_data(struct rsn_pmksa_cache_entry *entry,
00052                                struct eapol_state_machine *eapol);
00053 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa,
00054                u8 *pmkid);
00055 
00056 #endif /* PMKSA_CACHE_H */
00057 

Generated on Sun Dec 31 13:43:28 2006 for hostapd by  doxygen 1.4.2