]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Export IEEE 802.1X helper functions
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 4 Sep 2015 21:04:21 +0000 (00:04 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 22 Oct 2016 20:13:17 +0000 (23:13 +0300)
ieee802_1x_encapsulate_radius() and ieee802_1x_alloc_eapol_sm() need to
be called from FILS processing.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ieee802_1x.c
src/ap/ieee802_1x.h

index c6d000a2d997a82c0cabe6d1af18ded3e832b3a8..2dba49baba1c140ef454967f5d7c69caeb4247c1 100644 (file)
@@ -589,9 +589,9 @@ int add_common_radius_attr(struct hostapd_data *hapd,
 }
 
 
-static void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd,
-                                         struct sta_info *sta,
-                                         const u8 *eap, size_t len)
+void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd,
+                                  struct sta_info *sta,
+                                  const u8 *eap, size_t len)
 {
        struct radius_msg *msg;
        struct eapol_state_machine *sm = sta->eapol_sm;
@@ -846,7 +846,7 @@ static void handle_eap(struct hostapd_data *hapd, struct sta_info *sta,
 }
 
 
-static struct eapol_state_machine *
+struct eapol_state_machine *
 ieee802_1x_alloc_eapol_sm(struct hostapd_data *hapd, struct sta_info *sta)
 {
        int flags = 0;
index ec80199007b68240c7c9a011dcac08bf44afb929..9594661be8eecdd3b5d1926617eecaa578dd5687 100644 (file)
@@ -57,5 +57,10 @@ int add_common_radius_attr(struct hostapd_data *hapd,
                           struct hostapd_radius_attr *req_attr,
                           struct sta_info *sta,
                           struct radius_msg *msg);
+void ieee802_1x_encapsulate_radius(struct hostapd_data *hapd,
+                                  struct sta_info *sta,
+                                  const u8 *eap, size_t len);
+struct eapol_state_machine *
+ieee802_1x_alloc_eapol_sm(struct hostapd_data *hapd, struct sta_info *sta);
 
 #endif /* IEEE802_1X_H */