]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Make dpp_netrole_str() non-static
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 2 Feb 2022 14:42:50 +0000 (16:42 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 2 Feb 2022 14:59:59 +0000 (16:59 +0200)
This function is going to be needed outside dpp.c.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/common/dpp.c
src/common/dpp.h

index 77964f2644355b8dac6296eca57898356174ce91..138a3d3e07a26f6013ae6bba58ae21df8ee046c8 100644 (file)
@@ -26,8 +26,6 @@
 #include "dpp_i.h"
 
 
-static const char * dpp_netrole_str(enum dpp_netrole netrole);
-
 #ifdef CONFIG_TESTING_OPTIONS
 #ifdef CONFIG_DPP3
 int dpp_version_override = 3;
@@ -1401,7 +1399,7 @@ static void dpp_build_legacy_cred_params(struct wpabuf *buf,
 }
 
 
-static const char * dpp_netrole_str(enum dpp_netrole netrole)
+const char * dpp_netrole_str(enum dpp_netrole netrole)
 {
        switch (netrole) {
        case DPP_NETROLE_STA:
index 83f3d94afc019cedf407be70a34c5a055011f787..124d695f54d13b35a9d068e14d9fa8759555d904 100644 (file)
@@ -525,6 +525,7 @@ int dpp_parse_uri_mac(struct dpp_bootstrap_info *bi, const char *mac);
 int dpp_parse_uri_info(struct dpp_bootstrap_info *bi, const char *info);
 int dpp_nfc_update_bi(struct dpp_bootstrap_info *own_bi,
                      struct dpp_bootstrap_info *peer_bi);
+const char * dpp_netrole_str(enum dpp_netrole netrole);
 struct dpp_authentication *
 dpp_alloc_auth(struct dpp_global *dpp, void *msg_ctx);
 struct hostapd_hw_modes;