wpa_auth_ie.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * hostapd - WPA/RSN IE and KDE definitions
  3. * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef WPA_AUTH_IE_H
  9. #define WPA_AUTH_IE_H
  10. struct wpa_eapol_ie_parse {
  11. const u8 *wpa_ie;
  12. size_t wpa_ie_len;
  13. const u8 *rsn_ie;
  14. size_t rsn_ie_len;
  15. const u8 *pmkid;
  16. const u8 *gtk;
  17. size_t gtk_len;
  18. const u8 *mac_addr;
  19. size_t mac_addr_len;
  20. #ifdef CONFIG_PEERKEY
  21. const u8 *smk;
  22. size_t smk_len;
  23. const u8 *nonce;
  24. size_t nonce_len;
  25. const u8 *lifetime;
  26. size_t lifetime_len;
  27. const u8 *error;
  28. size_t error_len;
  29. #endif /* CONFIG_PEERKEY */
  30. #ifdef CONFIG_IEEE80211W
  31. const u8 *igtk;
  32. size_t igtk_len;
  33. #endif /* CONFIG_IEEE80211W */
  34. #ifdef CONFIG_IEEE80211R
  35. const u8 *mdie;
  36. size_t mdie_len;
  37. const u8 *ftie;
  38. size_t ftie_len;
  39. #endif /* CONFIG_IEEE80211R */
  40. };
  41. int wpa_parse_kde_ies(const u8 *buf, size_t len,
  42. struct wpa_eapol_ie_parse *ie);
  43. u8 * wpa_add_kde(u8 *pos, u32 kde, const u8 *data, size_t data_len,
  44. const u8 *data2, size_t data2_len);
  45. int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
  46. #endif /* WPA_AUTH_IE_H */