wpa_supplicant WPA-EAP-TTLS configuration

Jaume jaumebenseny at gmail.com
Tue Jun 26 12:47:28 EDT 2007


Hi,

YES, my first .config didn't support the EAP!
I've tried diferents configurations but i always have errors during the "make".
What's wrong?

my new ".config"
----------------------------------------------------------
 #
 #.config
 #
 # Uncomment following two lines and fix the paths if you have installed openssl
 # in non-default location
 #CFLAGS += -I/usr/local/openssl/include
 #LIBS += -L/usr/local/openssl/lib
 # Driver interface for Host AP driver
 #CONFIG_DRIVER_HOSTAP=y
 # Driver interface for Agere driver
 #CONFIG_DRIVER_HERMES=y
 # Change include directories to match with the local setup
 #CFLAGS += -I../../hcf -I../../include -I../../include/hcf
 #CFLAGS += -I../../include/wireless
 # Driver interface for Prism54 driver
 # (Note: Prism54 is not yet supported, i.e., this will not work as-is and is
 # for developers only)
 #CONFIG_DRIVER_PRISM54=y
 # Driver interface for ndiswrapper
 #CONFIG_DRIVER_NDISWRAPPER=y
 # Driver interface for Atmel driver
 #CONFIG_DRIVER_ATMEL=y
 # Driver interface for Broadcom driver
 #CONFIG_DRIVER_BROADCOM=y
 # Example path for wlioctl.h; change to match your configuration
 #CFLAGS += -I/opt/WRT54GS/release/src/include
 # Driver interface for Intel ipw2100/2200 driver
 #CONFIG_DRIVER_IPW=y
 #CONFIG_DRIVER_MADWIFI=y
 # Change include directories to match with the local setup
 #CFLAGS += -I../madwif
 CONFIG_DRIVER_WEXT=y
 # Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
 #CONFIG_DRIVER_BSD=y
 #CFLAGS += -I/usr/local/include
 #LIBS += -L/usr/local/lib
 # Driver interface for Windows NDIS
 #CONFIG_DRIVER_NDIS=y
 #CFLAGS += -I/usr/include/w32api/ddk
 #LIBS += -L/usr/local/lib
 # For native build using mingw
 #CONFIG_NATIVE_WINDOWS=y
 # Additional directories for cross-compilation on Linux host for mingw target
 #CFLAGS += -I/opt/mingw/mingw32/include/ddk
 #LIBS += -L/opt/mingw/mingw32/lib
 #CC=mingw32-gcc
 # Driver interface for development testing
 #CONFIG_DRIVER_TEST=y
 # Driver interface for wired Ethernet drivers
 #CONFIG_DRIVER_WIRED=y
 CONFIG_IEEE8021X_EAPOL=y
 # EAP-MD5 (automatically included if EAP-TTLS is enabled)
 CONFIG_EAP_MD5=y
 # EAP-MSCHAPv2 (automatically included if EAP-PEAP is enabled)
 #CONFIG_EAP_MSCHAPV2=y
 # EAP-TLS
 CONFIG_EAP_TLS=y
 # EAL-PEAP
 CONFIG_EAP_PEAP=y
 # EAP-TTLS
 CONFIG_EAP_TTLS=y
 # EAP-GTC
 #CONFIG_EAP_GTC=y
 # EAP-OTP
 #CONFIG_EAP_OTP=y
 # LEAP
 #CONFIG_EAP_LEAP=y
 # PKCS#12 (PFX) support (used to read private key and certificate file from
 # a file that usually has extension .p12 or .pfx)
 #CONFIG_PKCS12=y
 # Include control interface for external programs, e.g, wpa_cli
 CONFIG_CTRL_IFACE=y
----------------------------------------------------------

and my errors
----------------------------------------------------------
[root at localhost wpa_supplicant-0.5.8]# make
cc  -o wpa_supplicant config.o common.o md5.o md4.o rc4.o sha1.o des.o
os_unix.o eloop.o config_file.o base64.o l2_packet_linux.o eap_tls.o
eap_peap.o eap_ttls.o eap_md5.o eap_tlv.o eapol_sm.o eap.o
eap_methods.o eap_tls_common.o tls_openssl.o ms_funcs.o crypto.o
ctrl_iface.o ctrl_iface_unix.o wpa.o preauth.o pmksa_cache.o
aes_wrap.o wpa_supplicant.o events.o main.o drivers.o driver_wext.o
-lssl -lcrypto
crypto.o: In function `fips186_2_prf':
/tmp/wpa_supplicant-0.5.8/crypto.c:104: multiple definition of `fips186_2_prf'
sha1.o:/tmp/wpa_supplicant-0.5.8/sha1.c:408: first defined here
/usr/bin/ld: Warning: size of symbol `fips186_2_prf' changed from 409
in sha1.o to 565 in crypto.o
crypto.o: In function `sha1_vector':
/tmp/wpa_supplicant-0.5.8/crypto.c:82: multiple definition of `sha1_vector'
sha1.o:/tmp/wpa_supplicant-0.5.8/sha1.c:396: first defined here
/usr/bin/ld: Warning: size of symbol `sha1_vector' changed from 252 in
sha1.o to 88 in crypto.o
crypto.o: In function `md5_vector':
/tmp/wpa_supplicant-0.5.8/crypto.c:70: multiple definition of `md5_vector'
md5.o:/tmp/wpa_supplicant-0.5.8/md5.c:138: first defined here
/usr/bin/ld: Warning: size of symbol `md5_vector' changed from 542 in
md5.o to 88 in crypto.o
aes_wrap.o: In function `aes_encrypt':
/tmp/wpa_supplicant-0.5.8/aes.c:1074: multiple definition of `aes_encrypt'
crypto.o:/tmp/wpa_supplicant-0.5.8/crypto.c:172: first defined here
/usr/bin/ld: Warning: size of symbol `aes_encrypt' changed from 27 in
crypto.o to 9 in aes_wrap.o
aes_wrap.o: In function `aes_decrypt':
/tmp/wpa_supplicant-0.5.8/aes.c:1099: multiple definition of `aes_decrypt'
crypto.o:/tmp/wpa_supplicant-0.5.8/crypto.c:198: first defined here
/usr/bin/ld: Warning: size of symbol `aes_decrypt' changed from 27 in
crypto.o to 9 in aes_wrap.o
aes_wrap.o: In function `aes_decrypt_init':
/tmp/wpa_supplicant-0.5.8/aes.c:1086: multiple definition of `aes_decrypt_init'
crypto.o:/tmp/wpa_supplicant-0.5.8/crypto.c:184: first defined here
/usr/bin/ld: Warning: size of symbol `aes_decrypt_init' changed from
78 in crypto.o to 58 in aes_wrap.o
aes_wrap.o: In function `aes_encrypt_init':
/tmp/wpa_supplicant-0.5.8/aes.c:1061: multiple definition of `aes_encrypt_init'
crypto.o:/tmp/wpa_supplicant-0.5.8/crypto.c:158: first defined here
/usr/bin/ld: Warning: size of symbol `aes_encrypt_init' changed from
78 in crypto.o to 58 in aes_wrap.o
aes_wrap.o: In function `aes_decrypt_deinit':
/tmp/wpa_supplicant-0.5.8/aes.c:1105: multiple definition of
`aes_decrypt_deinit'
crypto.o:/tmp/wpa_supplicant-0.5.8/crypto.c:204: first defined here
aes_wrap.o: In function `aes_encrypt_deinit':
/tmp/wpa_supplicant-0.5.8/aes.c:1080: multiple definition of
`aes_encrypt_deinit'
crypto.o:/tmp/wpa_supplicant-0.5.8/crypto.c:178: first defined here
eap.o: In function `eap_sm_allowMethod':
/tmp/wpa_supplicant-0.5.8/eap.c:695: undefined reference to
`wpa_config_allowed_eap_method'
eap.o: In function `eap_sm_buildNak':
/tmp/wpa_supplicant-0.5.8/eap.c:803: undefined reference to
`wpa_config_allowed_eap_method'
eap.o: In function `eap_sm_build_expanded_nak':
/tmp/wpa_supplicant-0.5.8/eap.c:739: undefined reference to
`wpa_config_allowed_eap_method'
collect2: ld devolvió el estado de salida 1
make: *** [wpa_supplicant] Error 1

----------------------------------------------------------

thanks!!!

2007/6/25, Jouni Malinen <j at w1.fi>:
> On Mon, Jun 25, 2007 at 05:26:21PM -0500, Jaume wrote:
>
> > [root at localhost ~]#  wpa_supplicant -Dwext -i wlan0 -c
> > /etc/wpa_supplicant/test.conf
> > Line 6: unknown network field 'eap'.
> > Line 7: failed to parse network block.
> > Line 11: unknown network field 'eap'.
> > Line 12: failed to parse network block.
>
> Is EAP supported enabled in the wpa_supplicant build configuration
> (.config)?
>
> > network={
> >        ssid="eduroam"
> >        key_mgmt=IEEE8021X
> >        ap=TTLS
>
> That 'ap' looks like a typo..
>
> --
> Jouni Malinen                                            PGP id EFC895FA
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>



More information about the HostAP mailing list