wpas_kay.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * IEEE 802.1X-2010 KaY Interface
  3. * Copyright (c) 2013-2014, Qualcomm Atheros, Inc.
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef WPAS_KAY_H
  9. #define WPAS_KAY_H
  10. #ifdef CONFIG_MACSEC
  11. int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
  12. struct wpa_ssid *ssid);
  13. void * ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
  14. const u8 *peer_addr);
  15. void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s);
  16. void * ieee802_1x_create_preshared_mka(struct wpa_supplicant *wpa_s,
  17. struct wpa_ssid *ssid);
  18. #else /* CONFIG_MACSEC */
  19. static inline int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
  20. struct wpa_ssid *ssid)
  21. {
  22. return 0;
  23. }
  24. static inline void *
  25. ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
  26. const u8 *peer_addr)
  27. {
  28. return NULL;
  29. }
  30. static inline void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s)
  31. {
  32. }
  33. static inline void *
  34. ieee802_1x_create_preshared_mka(struct wpa_supplicant *wpa_s,
  35. struct wpa_ssid *ssid)
  36. {
  37. return 0;
  38. }
  39. #endif /* CONFIG_MACSEC */
  40. #endif /* WPAS_KAY_H */