From: Vinay Gannevaram Date: Mon, 10 Oct 2022 04:39:51 +0000 (+0530) Subject: PASN: Change pasn_use_384() to be a non-static function X-Git-Tag: hostap_2_11~1583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fff81a468ffc9c6cc11af5cb520e4d8cea70a917;p=thirdparty%2Fhostap.git PASN: Change pasn_use_384() to be a non-static function 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 --- diff --git a/src/common/wpa_common.c b/src/common/wpa_common.c index bedc14233..6e90689e1 100644 --- a/src/common/wpa_common.c +++ b/src/common/wpa_common.c @@ -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)) || diff --git a/src/common/wpa_common.h b/src/common/wpa_common.h index 2c6fe05ac..acb975ce5 100644 --- a/src/common/wpa_common.h +++ b/src/common/wpa_common.h @@ -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,