]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix sae_pk_gen compilation
authorAmeer Antar <ameerantar@comcast.net>
Sat, 28 Sep 2024 02:27:28 +0000 (22:27 -0400)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 17:00:59 +0000 (19:00 +0200)
The Makefile is not properly set up to compile the sae_pk_gen target.
Enabling CONFIG_SAE=y and CONFIG_SAE_PK=y in the configuration is not
sufficient to compile. The linker complains about undefined references.
These additions must be made to the Makefile to get it to compile, at
least with gcc. Once this is done, 'make sae_pk_gen' can be run without
issue.

Signed-off-by: Ameer Antar <ameerantar@comcast.net>
hostapd/Makefile

index c3419c10ee5e7c97d94e1f1e2f8a6205f1876618..9d3ab774d2b4414bf3249c914bae9d4a79bfc0ab 100644 (file)
@@ -1377,6 +1377,8 @@ SOBJS += ../src/common/sae.o
 SOBJS += ../src/common/sae_pk.o
 SOBJS += ../src/common/dragonfly.o
 SOBJS += $(AESOBJS)
+SOBJS += ../src/crypto/sha384.o
+SOBJS += ../src/crypto/sha512.o
 SOBJS += ../src/crypto/sha256-prf.o
 SOBJS += ../src/crypto/sha384-prf.o
 SOBJS += ../src/crypto/sha512-prf.o
@@ -1384,6 +1386,10 @@ SOBJS += ../src/crypto/dh_groups.o
 SOBJS += ../src/crypto/sha256-kdf.o
 SOBJS += ../src/crypto/sha384-kdf.o
 SOBJS += ../src/crypto/sha512-kdf.o
+SOBJS += ../src/common/wpa_common.o
+SOBJS += ../src/crypto/random.o
+SOBJS += ../src/crypto/sha1-prf.o
+SOBJS += ../src/utils/eloop.o
 
 _OBJS_VAR := NOBJS
 include ../src/objs.mk