]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PASN: Change pasn_use_384() to be a non-static function
authorVinay Gannevaram <quic_vganneva@quicinc.com>
Mon, 10 Oct 2022 04:39:51 +0000 (10:09 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 4 Nov 2022 11:01:08 +0000 (13:01 +0200)
libpasn.so users, e.g., Wi-Fi Aware module, could use this function
while deriving protocol specific keys using KDK. Move this function to
global scope to allow that.

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

index bedc1423395cca16380af6391b6d7d3a9e9f199e..6e90689e1a8ec49a94909942aab805f2ef9f3f12 100644 (file)
@@ -1320,7 +1320,7 @@ int wpa_ft_parse_ies(const u8 *ies, size_t ies_len, struct wpa_ft_ies *parse,
  * PASN frame. SHA-256 is used as the hash algorithm, except for the ciphers
  * 00-0F-AC:9 and 00-0F-AC:10 for which SHA-384 is used.
  */
-static bool pasn_use_sha384(int akmp, int cipher)
+bool pasn_use_sha384(int akmp, int cipher)
 {
        return (akmp == WPA_KEY_MGMT_PASN && (cipher == WPA_CIPHER_CCMP_256 ||
                                              cipher == WPA_CIPHER_GCMP_256)) ||
index 2c6fe05ac4917d0571408f254196bf6d9ca20b70..acb975ce5ab42386379a07e259bb3a98d91e1741 100644 (file)
@@ -711,6 +711,7 @@ int wpa_use_cmac(int akmp);
 int wpa_use_aes_key_wrap(int akmp);
 int fils_domain_name_hash(const char *domain, u8 *hash);
 
+bool pasn_use_sha384(int akmp, int cipher);
 int pasn_pmk_to_ptk(const u8 *pmk, size_t pmk_len,
                    const u8 *spa, const u8 *bssid,
                    const u8 *dhss, size_t dhss_len,