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,