Home | History | Annotate | Line # | Download | only in wpa_supplicant
wpas_kay.h revision 1.1.1.1.22.1
      1           1.1  christos /*
      2           1.1  christos  * IEEE 802.1X-2010 KaY Interface
      3           1.1  christos  * Copyright (c) 2013-2014, Qualcomm Atheros, Inc.
      4           1.1  christos  *
      5           1.1  christos  * This software may be distributed under the terms of the BSD license.
      6           1.1  christos  * See README for more details.
      7           1.1  christos  */
      8           1.1  christos 
      9           1.1  christos #ifndef WPAS_KAY_H
     10           1.1  christos #define WPAS_KAY_H
     11           1.1  christos 
     12           1.1  christos #ifdef CONFIG_MACSEC
     13           1.1  christos 
     14           1.1  christos int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
     15           1.1  christos 			    struct wpa_ssid *ssid);
     16           1.1  christos void * ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
     17           1.1  christos 				      const u8 *peer_addr);
     18           1.1  christos void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s);
     19           1.1  christos 
     20  1.1.1.1.22.1  pgoyette void * ieee802_1x_create_preshared_mka(struct wpa_supplicant *wpa_s,
     21  1.1.1.1.22.1  pgoyette 				       struct wpa_ssid *ssid);
     22  1.1.1.1.22.1  pgoyette 
     23           1.1  christos #else /* CONFIG_MACSEC */
     24           1.1  christos 
     25           1.1  christos static inline int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s,
     26           1.1  christos 					  struct wpa_ssid *ssid)
     27           1.1  christos {
     28           1.1  christos 	return 0;
     29           1.1  christos }
     30           1.1  christos 
     31           1.1  christos static inline void *
     32           1.1  christos ieee802_1x_notify_create_actor(struct wpa_supplicant *wpa_s,
     33           1.1  christos 			       const u8 *peer_addr)
     34           1.1  christos {
     35           1.1  christos 	return NULL;
     36           1.1  christos }
     37           1.1  christos 
     38           1.1  christos static inline void ieee802_1x_dealloc_kay_sm(struct wpa_supplicant *wpa_s)
     39           1.1  christos {
     40           1.1  christos }
     41           1.1  christos 
     42  1.1.1.1.22.1  pgoyette static inline void *
     43  1.1.1.1.22.1  pgoyette ieee802_1x_create_preshared_mka(struct wpa_supplicant *wpa_s,
     44  1.1.1.1.22.1  pgoyette 				struct wpa_ssid *ssid)
     45  1.1.1.1.22.1  pgoyette {
     46  1.1.1.1.22.1  pgoyette 	return 0;
     47  1.1.1.1.22.1  pgoyette }
     48  1.1.1.1.22.1  pgoyette 
     49           1.1  christos #endif /* CONFIG_MACSEC */
     50           1.1  christos 
     51           1.1  christos #endif /* WPAS_KAY_H */
     52