]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Mark local functions static
authorJouni Malinen <j@w1.fi>
Fri, 18 Nov 2011 19:53:36 +0000 (21:53 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 18 Nov 2011 19:53:36 +0000 (21:53 +0200)
These functions are not used outside the file in which they are defined.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/ap/ieee802_11_shared.c
src/crypto/aes-internal-dec.c
src/crypto/aes-internal-enc.c
src/p2p/p2p.c
src/tls/libtommath.c
src/tls/pkcs5.c
wpa_supplicant/ibss_rsn.c
wpa_supplicant/interworking.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/sme.c

index c447bce8049b3a462224db79fd5f76710c11e40b..52a4572a71146cfaae4137dcf2611ca1a2367894 100644 (file)
@@ -79,8 +79,8 @@ void ieee802_11_send_sa_query_req(struct hostapd_data *hapd,
 }
 
 
-void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd,
-                                  const u8 *sa, const u8 *trans_id)
+static void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd,
+                                         const u8 *sa, const u8 *trans_id)
 {
        struct sta_info *sta;
        struct ieee80211_mgmt resp;
index 2d32c03fbf4cb852c8f1c4443dcf514d33a2429b..a0fc45b792fcbbd3e22f8e3447f33feafe22f168 100644 (file)
@@ -32,7 +32,7 @@
  *
  * @return     the number of rounds for the given cipher key size.
  */
-void rijndaelKeySetupDec(u32 rk[/*44*/], const u8 cipherKey[])
+static void rijndaelKeySetupDec(u32 rk[/*44*/], const u8 cipherKey[])
 {
        int Nr = 10, i, j;
        u32 temp;
index 2f198263bb84a2d7149f6c8d940a21d86dca439b..8726aa7299769856c5f044c25759876a5473e2cc 100644 (file)
@@ -27,7 +27,7 @@
 #include "crypto.h"
 #include "aes_i.h"
 
-void rijndaelEncrypt(const u32 rk[/*44*/], const u8 pt[16], u8 ct[16])
+static void rijndaelEncrypt(const u32 rk[/*44*/], const u8 pt[16], u8 ct[16])
 {
        u32 s0, s1, s2, s3, t0, t1, t2, t3;
        const int Nr = 10;
index dfa8662ad3e478302ea126ec039b5035ac67e563..48a5d007b8077e1b0142025cfec87d68434e8912 100644 (file)
@@ -1412,9 +1412,9 @@ static void p2p_rx_p2p_action(struct p2p_data *p2p, const u8 *sa,
 }
 
 
-void p2p_rx_action_public(struct p2p_data *p2p, const u8 *da, const u8 *sa,
-                         const u8 *bssid, const u8 *data, size_t len,
-                         int freq)
+static void p2p_rx_action_public(struct p2p_data *p2p, const u8 *da,
+                                const u8 *sa, const u8 *bssid, const u8 *data,
+                                size_t len, int freq)
 {
        if (len < 1)
                return;
@@ -2377,7 +2377,7 @@ static void p2p_sd_cb(struct p2p_data *p2p, int success)
  * p2p_retry_pd - Retry any pending provision disc requests in IDLE state
  * @p2p: P2P module context from p2p_init()
  */
-void p2p_retry_pd(struct p2p_data *p2p)
+static void p2p_retry_pd(struct p2p_data *p2p)
 {
        struct p2p_device *dev;
 
index 1c021676db6111931ed013867379ea541665b500..7c9857f5c197f1fa1248bdbfdac014f49a4d6dd6 100644 (file)
@@ -2678,7 +2678,7 @@ mp_montgomery_setup (mp_int * n, mp_digit * rho)
  *
  * Based on Algorithm 14.32 on pp.601 of HAC.
 */
-int fast_mp_montgomery_reduce (mp_int * x, mp_int * n, mp_digit rho)
+static int fast_mp_montgomery_reduce (mp_int * x, mp_int * n, mp_digit rho)
 {
   int     ix, res, olduse;
   mp_word W[MP_WARRAY];
index 4291b84f16d7fc862968ed3237003edf333f29c4..fd9e346757f12cb8884f77fe03e3a758f823498a 100644 (file)
@@ -32,7 +32,7 @@ struct pkcs5_params {
 };
 
 
-enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid)
+static enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid)
 {
        if (oid->len == 7 &&
            oid->oid[0] == 1 /* iso */ &&
index 0d7d568e4c9c9b0387d080184aa68c6ff96ab76d..4bab9066fe1fe3d466dbdb697031f67891f0499f 100644 (file)
@@ -168,8 +168,8 @@ static void supp_deauthenticate(void * ctx, int reason_code)
 }
 
 
-int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr,
-                      const u8 *psk)
+static int ibss_rsn_supp_init(struct ibss_rsn_peer *peer, const u8 *own_addr,
+                             const u8 *psk)
 {
        struct wpa_sm_ctx *ctx = os_zalloc(sizeof(*ctx));
        if (ctx == NULL)
index 545c951e625d2539384cbb813ff5a8f37b39082c..2592688b0270f03aff3aceb55d8e786439b1542b 100644 (file)
@@ -422,8 +422,8 @@ static int nai_realm_cred_username(struct nai_realm_eap *eap)
 }
 
 
-struct nai_realm_eap * nai_realm_find_eap(struct wpa_supplicant *wpa_s,
-                                         struct nai_realm *realm)
+static struct nai_realm_eap * nai_realm_find_eap(struct wpa_supplicant *wpa_s,
+                                                struct nai_realm *realm)
 {
        u8 e;
 
index d2668be7d3c0f735559a33e8ba5c3733ff42865b..18686e5984a8bed802b4e5576d7d2548779e2ffb 100644 (file)
@@ -1752,8 +1752,8 @@ void wpas_prov_disc_resp(void *ctx, const u8 *peer, u16 config_methods)
 }
 
 
-void wpas_prov_disc_fail(void *ctx, const u8 *peer,
-                        enum p2p_prov_disc_status status)
+static void wpas_prov_disc_fail(void *ctx, const u8 *peer,
+                               enum p2p_prov_disc_status status)
 {
        struct wpa_supplicant *wpa_s = ctx;
 
index fe8be005b6281b8cd6856dffab6f324175c338cf..3416d6805e991dffe062328072c82ca79ab6c73f 100644 (file)
@@ -695,7 +695,7 @@ static void sme_start_sa_query(struct wpa_supplicant *wpa_s)
 }
 
 
-void sme_stop_sa_query(struct wpa_supplicant *wpa_s)
+static void sme_stop_sa_query(struct wpa_supplicant *wpa_s)
 {
        eloop_cancel_timeout(sme_sa_query_timer, wpa_s, NULL);
        os_free(wpa_s->sme.sa_query_trans_id);