building wpasupplicant 0.6.7

Jouni Malinen j at w1.fi
Fri Feb 27 10:28:21 EST 2009


On Tue, Feb 24, 2009 at 10:30:34PM +0000, Janne Pylvänäinen wrote:

> Hey guys, I'm trying to build wpa_supplicant for wps. 
> I've succesfully patched openssl0.9.8g

Why did you patch OpenSSL?

> ../src/wps/wps_common.o: In function `wps_derive_keys':
> /home/jaba/src/wpa_supplicant-0.6.8/wpa_supplicant/../src/wps/wps_common.c:100: undefined reference to `sha256_vector'
> ../src/crypto/dh_groups.o: In function `dh_derive_shared':
> /home/jaba/src/wpa_supplicant-0.6.8/wpa_supplicant/../src/crypto/dh_groups.c:609: undefined reference to `crypto_mod_exp'

> .config file:
> 
> CONFIG_TLS=internal 
> CONFIG_INTERNAL_LIBTOMMATH=y
> CONFIG_EAP_AKA=y
> CONFIG_EAP_PSK=y
> CONFIG_PCSC=y
> CONFIG_EAP_OTP=y
> CONFIG_EAP_PSK=y
> CONFIG_DRIVER_WEXT=y
> CONFIG_EAP=y
> CONFIG_WPS=y

Looks like you've found a combination that does not enable couple of
crypto functions. I'll see what can be done about that in the Makefile.
As a workaround, you can build this by adding TLS_FUNCS=y into this
.config or if you use OpenSSL, you can also use NEED_CRYPTO=0 which will
result in linking less unneeded code (but does not apparently work with
internal TLS/crypto).

-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list