Skip to contentSkip to conversation

wpa_supplicant: mesh support needs openssl

PATCH New Thomas Petazzoni 2 participants 2 messages Nov 11, 2017 – Nov 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wpa_supplicant: mesh support needs openssl

When BR2_PACKAGE_WPA_SUPPLICANT_MESH_NETWORKING is enabeld, wpa_supplicant currently fails to build with:

../src/common/sae.o: In function `sae_cn_confirm.isra.2':
sae.c:(.text+0x168): undefined reference to crypto_bignum_to_bin' sae.c:(.text+0x198): undefined reference to crypto_bignum_to_bin' ../src/common/sae.o: In function `sae_cn_confirm_ffc':
sae.c:(.text+0x214): undefined reference to crypto_bignum_to_bin' sae.c:(.text+0x22c): undefined reference to crypto_bignum_to_bin' ../src/common/sae.o: In function `sae_cn_confirm_ecc':
sae.c:(.text+0x2a4): undefined reference to crypto_ec_point_to_bin' sae.c:(.text+0x2c0): undefined reference to crypto_ec_point_to_bin'

[...]

This is due to the fact that the SAE code, used for the mesh network support, needs OpenSSL support. Therefore, we ensure that BR2_PACKAGE_WPA_SUPPLICANT_MESH_NETWORKING selects OpenSSL. Only OpenSSL is supported, which is why BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL is selected as well.

No changes to the .mk files are needed, because we were already handling OpenSSL as an optional dependency.

This problem was not yet caught by the autobuilders.

---
 package/wpa_supplicant/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/wpa_supplicant/Config.in +2 -0
index 4b810bf1a8..de03141e40 100644
@@ -48,6 +48,8 @@ config BR2_PACKAGE_WPA_SUPPLICANT_WIFI_DISPLAY
 config BR2_PACKAGE_WPA_SUPPLICANT_MESH_NETWORKING
 	bool "Enable mesh networking"
 	depends on BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
 	help
 	  Enable support for open and secured mesh networking
 	  (IEEE 802.11s)
Signature · 1 line
2.13.6
#1 lore raw

PATCH 1/1 wpa_supplicant: mesh support needs openssl

Quoted 23 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

When BR2_PACKAGE_WPA_SUPPLICANT_MESH_NETWORKING is enabeld, wpa_supplicant currently fails to build with:

../src/common/sae.o: In function `sae_cn_confirm.isra.2':
sae.c:(.text+0x168): undefined reference to crypto_bignum_to_bin' sae.c:(.text+0x198): undefined reference to crypto_bignum_to_bin' ../src/common/sae.o: In function `sae_cn_confirm_ffc':
sae.c:(.text+0x214): undefined reference to crypto_bignum_to_bin' sae.c:(.text+0x22c): undefined reference to crypto_bignum_to_bin' ../src/common/sae.o: In function `sae_cn_confirm_ecc':
sae.c:(.text+0x2a4): undefined reference to crypto_ec_point_to_bin' sae.c:(.text+0x2c0): undefined reference to crypto_ec_point_to_bin'

[...]

This is due to the fact that the SAE code, used for the mesh network support, needs OpenSSL support. Therefore, we ensure that BR2_PACKAGE_WPA_SUPPLICANT_MESH_NETWORKING selects OpenSSL. Only OpenSSL is supported, which is why BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL is selected as well.

Quoted 8 lines

No changes to the .mk files are needed, because we were already handling OpenSSL as an optional dependency.

This problem was not yet caught by the autobuilders.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard