xref: /freebsd/contrib/wpa/wpa_supplicant/wpas_kay.h (revision 67350cb56a69468c118bd4ccf6e361b7ebfa9eb4)
15b9c547cSRui Paulo /*
25b9c547cSRui Paulo  * IEEE 802.1X-2010 KaY Interface
35b9c547cSRui Paulo  * Copyright (c) 2013-2014, Qualcomm Atheros, Inc.
45b9c547cSRui Paulo  *
55b9c547cSRui Paulo  * This software may be distributed under the terms of the BSD license.
65b9c547cSRui Paulo  * See README for more details.
75b9c547cSRui Paulo  */
85b9c547cSRui Paulo 
95b9c547cSRui Paulo #ifndef WPAS_KAY_H
105b9c547cSRui Paulo #define WPAS_KAY_H
115b9c547cSRui Paulo 
125b9c547cSRui Paulo #ifdef CONFIG_MACSEC
135b9c547cSRui Paulo 
145b9c547cSRui Paulo int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
155b9c547cSRui Paulo 			    struct wpa_ssid *ssid);
165b9c547cSRui Paulo void * ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
175b9c547cSRui Paulo 				      const u8 *peer_addr);
185b9c547cSRui Paulo void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s);
195b9c547cSRui Paulo 
20*85732ac8SCy Schubert void * ieee802_1x_create_preshared_mka(struct wpa_supplicant *wpa_s,
21*85732ac8SCy Schubert 				       struct wpa_ssid *ssid);
22*85732ac8SCy Schubert 
235b9c547cSRui Paulo #else /* CONFIG_MACSEC */
245b9c547cSRui Paulo 
ieee802_1x_alloc_kay_sm(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)255b9c547cSRui Paulo static inline int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
265b9c547cSRui Paulo 					  struct wpa_ssid *ssid)
275b9c547cSRui Paulo {
285b9c547cSRui Paulo 	return 0;
295b9c547cSRui Paulo }
305b9c547cSRui Paulo 
315b9c547cSRui Paulo static inline void *
ieee802_1x_notify_create_actor(struct wpa_supplicant * wpa_s,const u8 * peer_addr)325b9c547cSRui Paulo ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
335b9c547cSRui Paulo 			       const u8 *peer_addr)
345b9c547cSRui Paulo {
355b9c547cSRui Paulo 	return NULL;
365b9c547cSRui Paulo }
375b9c547cSRui Paulo 
ieee802_1x_dealloc_kay_sm(struct wpa_supplicant * wpa_s)385b9c547cSRui Paulo static inline void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s)
395b9c547cSRui Paulo {
405b9c547cSRui Paulo }
415b9c547cSRui Paulo 
42*85732ac8SCy Schubert static inline void *
ieee802_1x_create_preshared_mka(struct wpa_supplicant * wpa_s,struct wpa_ssid * ssid)43*85732ac8SCy Schubert ieee802_1x_create_preshared_mka(struct wpa_supplicant *wpa_s,
44*85732ac8SCy Schubert 				struct wpa_ssid *ssid)
45*85732ac8SCy Schubert {
46*85732ac8SCy Schubert 	return 0;
47*85732ac8SCy Schubert }
48*85732ac8SCy Schubert 
495b9c547cSRui Paulo #endif /* CONFIG_MACSEC */
505b9c547cSRui Paulo 
515b9c547cSRui Paulo #endif /* WPAS_KAY_H */
52