From: Michael Braun Date: Sun, 28 Apr 2019 11:14:57 +0000 (+0200) Subject: Make hostapd_copy_psk_list() non-static X-Git-Tag: hostap_2_10~2050 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4ceaafc2443a7e2a6a73d7bd9cadde31d06b0cf;p=thirdparty%2Fhostap.git Make hostapd_copy_psk_list() non-static Signed-off-by: Michael Braun --- diff --git a/src/ap/ieee802_11_auth.c b/src/ap/ieee802_11_auth.c index 70ddf4a38..6295b996d 100644 --- a/src/ap/ieee802_11_auth.c +++ b/src/ap/ieee802_11_auth.c @@ -68,19 +68,6 @@ static void hostapd_acl_cache_free(struct hostapd_cached_radius_acl *acl_cache) } -static void copy_psk_list(struct hostapd_sta_wpa_psk_short **psk, - struct hostapd_sta_wpa_psk_short *src) -{ - if (!psk) - return; - - if (src) - src->ref++; - - *psk = src; -} - - static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, struct radius_sta *out) { @@ -659,6 +646,19 @@ void hostapd_acl_deinit(struct hostapd_data *hapd) } +void hostapd_copy_psk_list(struct hostapd_sta_wpa_psk_short **psk, + struct hostapd_sta_wpa_psk_short *src) +{ + if (!psk) + return; + + if (src) + src->ref++; + + *psk = src; +} + + void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk) { if (psk && psk->ref) { diff --git a/src/ap/ieee802_11_auth.h b/src/ap/ieee802_11_auth.h index 0b912860a..9410f55c5 100644 --- a/src/ap/ieee802_11_auth.h +++ b/src/ap/ieee802_11_auth.h @@ -34,5 +34,7 @@ int hostapd_acl_init(struct hostapd_data *hapd); void hostapd_acl_deinit(struct hostapd_data *hapd); void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk); void hostapd_acl_expire(struct hostapd_data *hapd); +void hostapd_copy_psk_list(struct hostapd_sta_wpa_psk_short **psk, + struct hostapd_sta_wpa_psk_short *src); #endif /* IEEE802_11_AUTH_H */