libeap.git
15 years agoAdd RADIUS server support for identity selection hint (RFC 4284)
Jouni Malinen [Fri, 26 Dec 2008 18:22:12 +0000 (20:22 +0200)]
Add RADIUS server support for identity selection hint (RFC 4284)

Previously, only the delivery option 1 from RFC 4284
(EAP-Request/Identity from the AP) was supported. Now option 3
(subsequent EAP-Request/Identity from RADIUS server) can also be used
when hostapd is used as a RADIUS server. The eap_user file will need to
have a Phase 1 user entry pointing to Identity method in order for this
to happen (e.g., "* Identity" in the end of the file). The identity hint
is configured in the same was as for AP/Authenticator case (eap_message
in hostapd.conf).

15 years agoNEED_BASE64 for WPS
Andriy Tkachuk [Fri, 26 Dec 2008 14:40:27 +0000 (16:40 +0200)]
NEED_BASE64 for WPS

It looks like we need base64 routines when compiling WPS in hostapd
(used in src/wps/wps_registrar.c:910).

15 years agoAdded a TODO item for sending protected Disassoc after failed SA Query
Jouni Malinen [Fri, 26 Dec 2008 13:56:30 +0000 (15:56 +0200)]
Added a TODO item for sending protected Disassoc after failed SA Query

15 years agohostap.epitest.fi server is not at ISC anymore.
Jouni Malinen [Fri, 26 Dec 2008 13:39:09 +0000 (15:39 +0200)]
hostap.epitest.fi server is not at ISC anymore.

15 years agoAdded a note about IEEE 802.11w/D7.0 update
Jouni Malinen [Fri, 26 Dec 2008 10:59:07 +0000 (12:59 +0200)]
Added a note about IEEE 802.11w/D7.0 update

15 years agoDo not use SA Query procedure if reassociation is part of FT
Jouni Malinen [Fri, 26 Dec 2008 10:55:35 +0000 (12:55 +0200)]
Do not use SA Query procedure if reassociation is part of FT

15 years agoAdd Key Length field into IGTK sub-element (FTIE) per 802.11w/D7.0
Jouni Malinen [Fri, 26 Dec 2008 10:49:15 +0000 (12:49 +0200)]
Add Key Length field into IGTK sub-element (FTIE) per 802.11w/D7.0

15 years agoUpdated SA Query procedure to use timeouts per 802.11w/D7.0
Jouni Malinen [Fri, 26 Dec 2008 10:30:34 +0000 (12:30 +0200)]
Updated SA Query procedure to use timeouts per 802.11w/D7.0

The previous max_attempts * timeout is now replaced with two timeouts
(one for each retry, the other one for maximum wait).

15 years agoRenamed Ping procedure into SA Query procedure per 802.11w/D7.0
Jouni Malinen [Fri, 26 Dec 2008 09:46:21 +0000 (11:46 +0200)]
Renamed Ping procedure into SA Query procedure per 802.11w/D7.0

This commit changes just the name and Action category per D7.0. The
retransmit/timeout processing in the AP is not yet updated with the
changes in D7.0.

15 years agoFixed the MFP Status/Reason Code values per 802.11w/D7.0
Jouni Malinen [Fri, 26 Dec 2008 09:25:05 +0000 (11:25 +0200)]
Fixed the MFP Status/Reason Code values per 802.11w/D7.0

15 years agoWPS: As a workaround, pad zero-length device attributes
Jouni Malinen [Thu, 25 Dec 2008 19:19:46 +0000 (21:19 +0200)]
WPS: As a workaround, pad zero-length device attributes

Some deployed WPS implementations fail to parse zero-length attributes.
As a workaround, send a null character if the device attribute string is
empty. This allows default values (empty strings) to be used without
interop issues.

15 years agoWPS: Do not use Selected Registrar Config Methods from scan results
Andriy Tkachuk [Thu, 25 Dec 2008 18:33:00 +0000 (20:33 +0200)]
WPS: Do not use Selected Registrar Config Methods from scan results

Before this change, it looked like an AP that was using wsccmd did not
get activated since wsccmd left the Selected Registrar Config Methods
attribute to be zero. Since Device Password ID can be used to
distinguish PBC from any other method, use only it to figure out whether
PBC or PIN method is active.

15 years agoLonger auth_timeout for WPS key_mgmt
Andriy Tkachuk [Thu, 25 Dec 2008 18:26:07 +0000 (20:26 +0200)]
Longer auth_timeout for WPS key_mgmt

It seems that for WPS registration we should use the same authentication
timeout as for ieee8021x, no? (See patch attached.) On slow platforms
public keys computation may take around 4-5 seconds (we actually stuck
on this issue).

15 years agoAdded a ChangeLog entry about the new Windows installer
Jouni Malinen [Thu, 25 Dec 2008 15:37:04 +0000 (17:37 +0200)]
Added a ChangeLog entry about the new Windows installer

15 years agowpa_gui-qt4: Do not about new network adapters unless service is running
Jouni Malinen [Thu, 25 Dec 2008 15:32:51 +0000 (17:32 +0200)]
wpa_gui-qt4: Do not about new network adapters unless service is running

Skip the user prompt for adding a new network interface if wpa_gui is
not yet connected to wpasvc.

15 years agoFixed control interface enabling for dynamically added interface
Jouni Malinen [Thu, 25 Dec 2008 15:13:19 +0000 (17:13 +0200)]
Fixed control interface enabling for dynamically added interface

Set ctrl_interface to non-empty value in INTERFACE_ADD to avoid
ctrl_iface.c assuming the control interface is not to be enabled. This
fixes the dynamically added interface to use control interface.

15 years agoAdd Windows registry entries during installation
Jouni Malinen [Thu, 25 Dec 2008 14:59:37 +0000 (16:59 +0200)]
Add Windows registry entries during installation

The NSIS installer will now add Windows registry entries for
wpa_supplicant during installation and removes them during
uninstallation. This allows wpa_gui to start wpasvc and add new
interfaces without requiring the user to do any manual registry
editing.

15 years agowpa_gui-qt4: Added support for adding new network interfaces
Jouni Malinen [Thu, 25 Dec 2008 14:38:09 +0000 (16:38 +0200)]
wpa_gui-qt4: Added support for adding new network interfaces

"Add interface" command in File menu can now be used to add a new
network interface to running wpa_supplicant (using INTERFACE_ADD control
interface command). In addition, the network interface is added into
Windows registry (with skip_on_error) for future use. This functionality
is currently enabled only for Windows builds. The user is also prompted
about the possibility of adding an interface if no interfaces are
enabled. This makes it easier to get started without having to touch
registry manually.

15 years agoAdded get_interfaces() handler to list all NDIS adapters
Jouni Malinen [Wed, 24 Dec 2008 19:31:14 +0000 (21:31 +0200)]
Added get_interfaces() handler to list all NDIS adapters

15 years agowpasvc: Add skip_on_error registry value to skip interfaces on error
Jouni Malinen [Wed, 24 Dec 2008 18:39:32 +0000 (20:39 +0200)]
wpasvc: Add skip_on_error registry value to skip interfaces on error

This can be used to include binding information for multiple interfaces
in Windows registry and only use the ones that match with an available
network interface.

15 years agoAdded a mechanism for quering driver wrappers for available interfaces
Jouni Malinen [Wed, 24 Dec 2008 18:25:19 +0000 (20:25 +0200)]
Added a mechanism for quering driver wrappers for available interfaces

The new INTERFACE_LIST global control interface command can be used to
request a list of all available network interfaces that could be used
with the enabled driver wrappers. This could be used to enable
interfaces automatically by external programs (e.g., wpa_gui).

15 years agoMark local functions static.
Jouni Malinen [Mon, 22 Dec 2008 20:27:25 +0000 (22:27 +0200)]
Mark local functions static.

15 years agoAdded support for global driver data (shared by multiple interfaces)
Jouni Malinen [Mon, 22 Dec 2008 20:24:31 +0000 (22:24 +0200)]
Added support for global driver data (shared by multiple interfaces)

Driver wrappers can now register global_init() and global_deinit()
driver_ops handlers to get a global data structure that can be shared
for all interfaces. This allows driver wrappers to initialize some
functionality (e.g., interface monitoring) before any interfaces have
been initialized.

15 years agoChanged the example device_type value to be Computer/PC
Jouni Malinen [Mon, 22 Dec 2008 17:43:44 +0000 (19:43 +0200)]
Changed the example device_type value to be Computer/PC

15 years agoReject association if HT STA tries to use TKIP as pairwise cipher
Jouni Malinen [Mon, 22 Dec 2008 12:05:53 +0000 (14:05 +0200)]
Reject association if HT STA tries to use TKIP as pairwise cipher

15 years agoAllow HT to be enabled for a STA even without WMM
Jouni Malinen [Mon, 22 Dec 2008 11:05:33 +0000 (13:05 +0200)]
Allow HT to be enabled for a STA even without WMM

The STA won't be able to use block ACK/aggregation, but at least it
should be allowed to use MCS rates and HT40.

15 years agoAdd Start menu shortcuts to wpa_gui and uninstall
Jouni Malinen [Sun, 21 Dec 2008 17:50:39 +0000 (19:50 +0200)]
Add Start menu shortcuts to wpa_gui and uninstall

In addition, make uninstall use confirm dialog to avoid accidental
uninstalls.

15 years agoUse wildcard UUID when setting AP PIN for Registrar in wpa_supplicant
Jouni Malinen [Sun, 21 Dec 2008 15:37:40 +0000 (17:37 +0200)]
Use wildcard UUID when setting AP PIN for Registrar in wpa_supplicant

15 years agoFixed PBC overlap detection to handle case of missing UUID-E
Jouni Malinen [Sun, 21 Dec 2008 15:28:01 +0000 (17:28 +0200)]
Fixed PBC overlap detection to handle case of missing UUID-E

UUID-E is not required to be present in Beacon frame, so we need to
accept scan results that do not have UUID-E as a valid PBC situation as
long as not more than one AP is in active PBC mode.

15 years agoFixed NDIS AuthMode configuration for WPS connection
Jouni Malinen [Sun, 21 Dec 2008 15:27:32 +0000 (17:27 +0200)]
Fixed NDIS AuthMode configuration for WPS connection

15 years agowpa_gui-qt4: Added wpasvc start/stop functionality for Windows
Jouni Malinen [Sun, 21 Dec 2008 12:28:45 +0000 (14:28 +0200)]
wpa_gui-qt4: Added wpasvc start/stop functionality for Windows

wpa_gui will now ask user whether the wpasvc service should be started
if it is not running. In addition, File menu has items for starting and
stopping the service.

15 years agoSilence a compiler warning
Jouni Malinen [Sun, 21 Dec 2008 10:26:32 +0000 (12:26 +0200)]
Silence a compiler warning

15 years agoAdded more notes about WPS GUI scan operations and wpa_gui
Jouni Malinen [Sat, 20 Dec 2008 21:03:32 +0000 (23:03 +0200)]
Added more notes about WPS GUI scan operations and wpa_gui

15 years agoWPS: Added support for wildcard SSID matching in ap_scan=2 mode
Jouni Malinen [Sat, 20 Dec 2008 20:55:02 +0000 (22:55 +0200)]
WPS: Added support for wildcard SSID matching in ap_scan=2 mode

Change association behavior to match with ap_scan=1 when WPS is used in
ap_scan=2 mode with wildcard SSID matching. In addition, allow hardcoded
BSSID to be used to select AP even if selected registrar attribute is
not present.

15 years agoFixed a typo in a comment
Jouni Malinen [Sat, 20 Dec 2008 19:51:34 +0000 (21:51 +0200)]
Fixed a typo in a comment

15 years agoInclude WPS support in the Windows binary
Jouni Malinen [Sat, 20 Dec 2008 19:40:26 +0000 (21:40 +0200)]
Include WPS support in the Windows binary

15 years agoRegister wpasvc service on install and unregister on uninstall
Jouni Malinen [Sat, 20 Dec 2008 18:49:58 +0000 (20:49 +0200)]
Register wpasvc service on install and unregister on uninstall

15 years agoUse parallel compilation to speed up release build
Jouni Malinen [Sat, 20 Dec 2008 18:42:39 +0000 (20:42 +0200)]
Use parallel compilation to speed up release build

15 years agoAdded Windows NSIS installer for wpa_supplicant
Jouni Malinen [Sat, 20 Dec 2008 18:40:23 +0000 (20:40 +0200)]
Added Windows NSIS installer for wpa_supplicant

15 years agoCreate PNG version of the wpa_gui tray icon file for cross compilation
Jouni Malinen [Sat, 20 Dec 2008 15:55:52 +0000 (17:55 +0200)]
Create PNG version of the wpa_gui tray icon file for cross compilation

15 years agoChanged win_gui cross compilation to use cleaner Qt setup
Jouni Malinen [Sat, 20 Dec 2008 15:50:13 +0000 (17:50 +0200)]
Changed win_gui cross compilation to use cleaner Qt setup

A separate cross compiler mkspecs file (win32-x-g++) is now used to
configure all build options so the setup-mingw-cross-compiling hack is
not needed anymore. Furthermore, the MinGW setup is now on path, so no
need to specify extra PATH changes for it.

15 years agoAdded a note about mac80211-based drivers and nl80211
Jouni Malinen [Sat, 20 Dec 2008 11:02:29 +0000 (13:02 +0200)]
Added a note about mac80211-based drivers and nl80211

15 years agoIANA allocated EAP method type 51 to EAP-GPSK
Jouni Malinen [Sat, 20 Dec 2008 10:39:24 +0000 (12:39 +0200)]
IANA allocated EAP method type 51 to EAP-GPSK

15 years agoWPS: Added event callback for successfully completed registration
Jouni Malinen [Fri, 19 Dec 2008 20:34:18 +0000 (22:34 +0200)]
WPS: Added event callback for successfully completed registration

15 years agoWPS: Added callback for failure-after-M2/M2D
Jouni Malinen [Fri, 19 Dec 2008 20:19:41 +0000 (22:19 +0200)]
WPS: Added callback for failure-after-M2/M2D

This callback is now used to stop wpa_supplicant from trying to continue
using parameters (most likely, device password) that do not work in a
loop. In addition, wpa_gui can now notify user of failed registration.

15 years agoWPS: Added event callback and M2D notification
Jouni Malinen [Thu, 18 Dec 2008 19:58:42 +0000 (21:58 +0200)]
WPS: Added event callback and M2D notification

The event callback will be used for various event messages and the M2D
notification is the first such message. It is used to notify wpa_gui
about Registrar not yet knowing the device password (PIN).

15 years agoFixed global conf write to skip default values for uuid and os_version
Jouni Malinen [Thu, 18 Dec 2008 19:29:59 +0000 (21:29 +0200)]
Fixed global conf write to skip default values for uuid and os_version

15 years agoFix CONFIG_WPS=y, CONFIG_TLS=internal build
Andriy Tkachuk [Thu, 18 Dec 2008 18:10:18 +0000 (20:10 +0200)]
Fix CONFIG_WPS=y, CONFIG_TLS=internal build

crypto_mod_exp() is needed for both EAP-FAST and WPS.

15 years agoFixed PSK editing in wpa_gui (copy-paste bug in field names)
Jouni Malinen [Thu, 18 Dec 2008 18:03:24 +0000 (20:03 +0200)]
Fixed PSK editing in wpa_gui (copy-paste bug in field names)

15 years agoCleaned up EAPOL-Key timeout processing
Jouni Malinen [Thu, 18 Dec 2008 15:15:36 +0000 (17:15 +0200)]
Cleaned up EAPOL-Key timeout processing

dot11RSNAConfigGroupUpdateTimeOut and
dot11RSNAConfigPairwiseUpdateTimeOut MIB variables were only used in
draft versions of IEEE 802.11i, so rename these in order not to use
confusing name here.

Replaced EAPOL-Key timeout to use following timeouts (in
milliseconds): 100,1000,1000,1000 (this was 1000,1000,1000,0). There
is no point in sending out the final EAPOL-Key frame which would be
immediately followed by disconnection. After the change to allow
response to any pending EAPOL-Key frame, it is fine to send the first
retransmission quickly to avoid long wait in cases where Supplicant
did not receive the first frame for any reason. The new sequence will
still provide 3.1 seconds of time to get any response frame, so this
does not reduce the previous time.

15 years agoWPS: Fixed deinit code for freeing config and registrar data
Jouni Malinen [Wed, 17 Dec 2008 23:06:06 +0000 (01:06 +0200)]
WPS: Fixed deinit code for freeing config and registrar data

We need to be a bit more careful when removing the WPS configuration
block since wpa_s->current_ssid may still be pointing at it. In
addition, registrar pointer in wps_context will need to be cleared
since the context data is now maintained over multiple EAP-WSC runs.
Without this, certain WPS operations could have used freed memory.

15 years agoDo not allow HT with WPA/WPA2 to be enabled without CCMP
Jouni Malinen [Wed, 17 Dec 2008 10:16:13 +0000 (12:16 +0200)]
Do not allow HT with WPA/WPA2 to be enabled without CCMP

IEEE 802.11n does not allow HT STAs to use TKIP between themselves, so
do do allow a configuration that would force this to happen if HT is
used.

15 years agoWPS: Added wpa_gui-qt4 support for BSS selection and AP PIN use
Jouni Malinen [Tue, 16 Dec 2008 21:43:08 +0000 (23:43 +0200)]
WPS: Added wpa_gui-qt4 support for BSS selection and AP PIN use

The specific AP (BSSID) can now be selected through scan results for
WPS (WPS pushbutton on the network configuration dialog). When a BSSID
is selected, AP device PIN (e.g., from a label) can be used to configure
the AP by acting as a Registrar.

15 years agoWPS: Improved error processing to use NACK correctly
Jouni Malinen [Tue, 16 Dec 2008 20:37:55 +0000 (22:37 +0200)]
WPS: Improved error processing to use NACK correctly

Instead of sending out EAP-Failure on errors (on AP) or stopping (on
Supplicant), send a NACK message based on the allowed EAP state machine
transitions for EAP-WSC.

15 years agoUse less frequent polling when wpa_gui is hidden
Jouni Malinen [Tue, 16 Dec 2008 19:25:44 +0000 (21:25 +0200)]
Use less frequent polling when wpa_gui is hidden

15 years agoFixed EAP-AKA build in case EAP-AKA' is disabled
Jouni Malinen [Tue, 16 Dec 2008 16:57:49 +0000 (18:57 +0200)]
Fixed EAP-AKA build in case EAP-AKA' is disabled

15 years agoImprove EAPOL-Key handshake stability with retransmitted frames
Jouni Malinen [Tue, 16 Dec 2008 12:17:33 +0000 (14:17 +0200)]
Improve EAPOL-Key handshake stability with retransmitted frames

Accept response to any pending request, not just the last one. This
gives the Supplicant more time to reply since hostapd will now allow up
to three seconds for the reply to the first EAPOL-Key frame transmission
(and two seconds for the first retry and one second for the last) while
the previous version invalidated any old request immediately when
sending a retransmitted frame.

If the Supplicant replies to more than one request, only the first reply
to arrive at the Authenticator will be processed. As far as the
Supplicant is concerned, this behavior does not differ from the previous
one except for being less likely to cause unneeded retransmissions of
EAPOL-Key frames.

This can help in cases where power saving is used when the group key is
rekeyed or when there is excessive traffic on the channel that can delay
(or drop) EAPOL-Key frames.

15 years agoWPS: Added WPS support into wpa_gui-qt4
Jouni Malinen [Mon, 15 Dec 2008 20:36:42 +0000 (22:36 +0200)]
WPS: Added WPS support into wpa_gui-qt4

Currently, only Enrollee operations (both PBC and PIN) are supported.

15 years agoUse a fixed wps_msg prefix with WPS creds notification
Jouni Malinen [Mon, 15 Dec 2008 20:32:45 +0000 (22:32 +0200)]
Use a fixed wps_msg prefix with WPS creds notification

15 years agoWPS: Added control interface notification for available WPS APs
Jouni Malinen [Mon, 15 Dec 2008 18:09:57 +0000 (20:09 +0200)]
WPS: Added control interface notification for available WPS APs

Whenever new scan results include WPS AP(s) and the client is not
associated, send a notification message to control interface monitors.
This makes it easier for GUIs to notify the user about possible WPS
availability without having to go through the scan results.

15 years agoFixed memory leak in WPS PBC overlap detection
Jouni Malinen [Mon, 15 Dec 2008 17:50:53 +0000 (19:50 +0200)]
Fixed memory leak in WPS PBC overlap detection

15 years agoFixed interoperability issue with PEAPv0 cryptobinding and NPS
Jouni Malinen [Sun, 14 Dec 2008 22:15:54 +0000 (00:15 +0200)]
Fixed interoperability issue with PEAPv0 cryptobinding and NPS

Windows Server 2008 NPS gets very confused if the TLS Message Length is
not included in the Phase 1 messages even if fragmentation is not used.
If the TLS Message Length field is not included in ClientHello message,
NPS seems to decide to use the ClientHello data (excluding first six
octets, i.e., EAP header, type, Flags) as the OuterTLVs data in
Cryptobinding Compound_MAC calculation (per PEAPv2; not MS-PEAP)..

Lets add the TLS Message Length to PEAPv0 Phase 1 messages to get rid of
this issue. This seems to fix Cryptobinding issues with NPS and PEAPv0
is now using optional Cryptobinding by default (again) since there are
no known interop issues with it anymore.

15 years agoCleaned up EAP-MSCHAPv2 key derivation
Jouni Malinen [Sun, 14 Dec 2008 11:12:20 +0000 (13:12 +0200)]
Cleaned up EAP-MSCHAPv2 key derivation

Changed peer to derive the full key (both MS-MPPE-Recv-Key and
MS-MPPE-Send-Key for total of 32 octets) to match with server
implementation.

Swapped the order of MPPE keys in MSK derivation since server
MS-MPPE-Recv-Key | MS-MPPE-Send-Key matches with the order specified for
EAP-TLS MSK derivation. This means that PEAPv0 cryptobinding is now
using EAP-MSCHAPv2 MSK as-is for ISK while EAP-FAST will need to swap
the order of the MPPE keys to get ISK in a way that interoperates with
Cisco EAP-FAST implementation.

15 years agoAdded INT_RANGE parser for global configuration variables
Jouni Malinen [Sat, 13 Dec 2008 16:21:16 +0000 (18:21 +0200)]
Added INT_RANGE parser for global configuration variables

15 years agoUse shared string parser for global configuration fields
Jouni Malinen [Sat, 13 Dec 2008 16:17:27 +0000 (18:17 +0200)]
Use shared string parser for global configuration fields

15 years agoShare the same global config parser function for integer values
Jouni Malinen [Sat, 13 Dec 2008 16:04:43 +0000 (18:04 +0200)]
Share the same global config parser function for integer values

15 years agoFirst step in cleaning up global config parser: use parse_data array
Jouni Malinen [Sat, 13 Dec 2008 15:57:17 +0000 (17:57 +0200)]
First step in cleaning up global config parser: use parse_data array

15 years agoAdded configuration of WPS device parameters for wpa_supplicant
Jouni Malinen [Sat, 13 Dec 2008 15:20:46 +0000 (17:20 +0200)]
Added configuration of WPS device parameters for wpa_supplicant

15 years agodriver_test: Handle WPS IE in non-MLME test
Jouni Malinen [Fri, 12 Dec 2008 20:52:56 +0000 (22:52 +0200)]
driver_test: Handle WPS IE in non-MLME test

15 years agoPorted driver_test to Windows (only UDP socket available)
Jouni Malinen [Fri, 12 Dec 2008 20:41:18 +0000 (22:41 +0200)]
Ported driver_test to Windows (only UDP socket available)

15 years agodriver_test: Optional support for using UDP socket
Jouni Malinen [Fri, 12 Dec 2008 19:35:22 +0000 (21:35 +0200)]
driver_test: Optional support for using UDP socket

driver_test can now be used either over UNIX domain socket or UDP
socket. This makes it possible to run the test over network and makes it
easier to port driver_test to Windows.

hostapd configuration: test_socket=UDP:<listen port>
wpa_supplicant configuration: driver_param=test_udp=<dst IP addr>:<port>

15 years agoComment out dynamic CertEnumCertificatesInStore loading by default
Jouni Malinen [Wed, 10 Dec 2008 22:57:15 +0000 (00:57 +0200)]
Comment out dynamic CertEnumCertificatesInStore loading by default

This is now available in MinGW header files, so the loading code is
triggering conflicts.

15 years agoWorkaround number of compiler warnings with newer MinGW version
Jouni Malinen [Wed, 10 Dec 2008 22:56:37 +0000 (00:56 +0200)]
Workaround number of compiler warnings with newer MinGW version

15 years agoResolved number of signed/unsigned mismatches and ntddndis.h location
Jouni Malinen [Wed, 10 Dec 2008 22:55:33 +0000 (00:55 +0200)]
Resolved number of signed/unsigned mismatches and ntddndis.h location

15 years agoRename MSG to MESG to avoid conflicts with Windows header files
Jouni Malinen [Wed, 10 Dec 2008 22:54:49 +0000 (00:54 +0200)]
Rename MSG to MESG to avoid conflicts with Windows header files

15 years agoDon't include unused calls to SHA256 functions if EAP-AKA' is not enabled
Jouni Malinen [Wed, 10 Dec 2008 22:49:39 +0000 (00:49 +0200)]
Don't include unused calls to SHA256 functions if EAP-AKA' is not enabled

15 years agoSHA256 is needed for EAP-AKA' and WPS
Jouni Malinen [Wed, 10 Dec 2008 22:48:13 +0000 (00:48 +0200)]
SHA256 is needed for EAP-AKA' and WPS

15 years agoAdded CONFIG_IEEE80211N into defconfig (commented out)
Jouni Malinen [Tue, 9 Dec 2008 22:46:55 +0000 (00:46 +0200)]
Added CONFIG_IEEE80211N into defconfig (commented out)

15 years agoFixed build without CONFIG_IEEE80211N
Jouni Malinen [Tue, 9 Dec 2008 22:45:57 +0000 (00:45 +0200)]
Fixed build without CONFIG_IEEE80211N

15 years agoUpdated the comment about libnl to state that version 1.1 is new enough
Jouni Malinen [Tue, 9 Dec 2008 20:41:01 +0000 (22:41 +0200)]
Updated the comment about libnl to state that version 1.1 is new enough

15 years agoRenamed the 'alpha2' variable to 'country' to match with config string
Jouni Malinen [Tue, 9 Dec 2008 20:15:47 +0000 (22:15 +0200)]
Renamed the 'alpha2' variable to 'country' to match with config string

15 years agoAdded documentation for the new 'country' configuration option
Jouni Malinen [Tue, 9 Dec 2008 20:13:35 +0000 (22:13 +0200)]
Added documentation for the new 'country' configuration option

15 years agowpa_supplicant: Add support for setting of a regulatory domain
Luis R. Rodriguez [Tue, 9 Dec 2008 20:11:14 +0000 (22:11 +0200)]
wpa_supplicant: Add support for setting of a regulatory domain

This adds support for setting of a regulatory domain to wpa_supplicant
drivers. It also adds regulatory domain setting for the nl80211 driver.
We expect an ISO / IEC 3166 alpha2 in the wpa configuration file as a
global.

15 years agowpa_supplicant: print password field only if -K is given
Helmut Schaa [Tue, 9 Dec 2008 19:56:47 +0000 (21:56 +0200)]
wpa_supplicant: print password field only if -K is given

Print the password field only if -K is given by using wpa_hexdump_ascii_key
instead of wpa_hexdump_ascii. Additionally mark the password field as key.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
15 years agoAdded libnl 2.0 compatibility code (CONFIG_LIBNL20=y in .config needed)
Jouni Malinen [Mon, 8 Dec 2008 20:40:58 +0000 (22:40 +0200)]
Added libnl 2.0 compatibility code (CONFIG_LIBNL20=y in .config needed)

Unfortunately, at least the current libnl git snapshot changes the API
in backwards incompatible way and in a way that makes it difficult to
to allow building against the latest libnl code.

15 years agoFixed a typo in wpa_supplicant manpage
Jouni Malinen [Mon, 8 Dec 2008 20:16:15 +0000 (22:16 +0200)]
Fixed a typo in wpa_supplicant manpage

15 years agodriver_test: Added support for testing WPS without use_mlme
Jouni Malinen [Mon, 8 Dec 2008 19:42:01 +0000 (21:42 +0200)]
driver_test: Added support for testing WPS without use_mlme

15 years agoWPS: Added [WPS], [WPS-PIN], [WPS-PBC] flags for scan results
Jouni Malinen [Mon, 8 Dec 2008 18:57:59 +0000 (20:57 +0200)]
WPS: Added [WPS], [WPS-PIN], [WPS-PBC] flags for scan results

15 years agonl80211: Include copy of linux/nl80211.h with hostapd/wpa_supplicant
Jouni Malinen [Mon, 8 Dec 2008 09:04:13 +0000 (11:04 +0200)]
nl80211: Include copy of linux/nl80211.h with hostapd/wpa_supplicant

This makes it easier to build the packages and allows all new features
to be built into the binary regardless of which kernel is currently
used.

15 years agoAdded option to force SoH version 1 (tnc=soh1)
Jouni Malinen [Sun, 7 Dec 2008 19:00:42 +0000 (21:00 +0200)]
Added option to force SoH version 1 (tnc=soh1)

The default version with tnc=soh remains to be 2 which is the currently
recommended version in SoH specification.

15 years agoAdded EAP-FAST interop test results with Radiator 4.3.1
Jouni Malinen [Sun, 7 Dec 2008 18:27:43 +0000 (20:27 +0200)]
Added EAP-FAST interop test results with Radiator 4.3.1

15 years agoMerged EAP-AKA' into eap_aka.c and added it to defconfig/ChangeLog
Jouni Malinen [Sun, 7 Dec 2008 17:24:56 +0000 (19:24 +0200)]
Merged EAP-AKA' into eap_aka.c and added it to defconfig/ChangeLog

15 years agoAdded protection against EAP-AKA' -> EAP-AKA bidding down attacks
Jouni Malinen [Fri, 5 Dec 2008 20:25:47 +0000 (22:25 +0200)]
Added protection against EAP-AKA' -> EAP-AKA bidding down attacks

AT_BIDDING attribute is included in EAP-AKA/Challenge to allow peer to
know whether the server would have preferred EAP-AKA'.

15 years agoFixed a typo in a comment
Jouni Malinen [Thu, 4 Dec 2008 20:15:51 +0000 (22:15 +0200)]
Fixed a typo in a comment

15 years agoEAP-AKA': Added CK',IK' derivation
Jouni Malinen [Thu, 4 Dec 2008 19:50:56 +0000 (21:50 +0200)]
EAP-AKA': Added CK',IK' derivation

This is based on a change request 3GPP TS 33.402 CR 0033 for version
8.1.1. The hardcoded ANID is now 'WLAN' since that is used in
3GPP TS 24.302.

15 years agoEAP-AKA': Comment out EAP-AKA' server KDF negotiation
Jouni Malinen [Thu, 4 Dec 2008 18:32:56 +0000 (20:32 +0200)]
EAP-AKA': Comment out EAP-AKA' server KDF negotiation

Since only one KDF is currently supported, the negotiation is not
allowed and peer must be rejected if it tries to send KDF selection in a
Challenge message. The negotiation code is left in the file and just
commented out since it was tested to work and can be used in the future
if another KDF is added.

15 years agoEAP-AKA': Added processing of AT_KDF and AT_KDF_INPUT attributes
Jouni Malinen [Thu, 4 Dec 2008 18:29:46 +0000 (20:29 +0200)]
EAP-AKA': Added processing of AT_KDF and AT_KDF_INPUT attributes

Network Name is not yet generated and validated based on 3GPP.33.402
(i.e., a hardcoded string is used in server and anything is accepted in
peer).

15 years agoFixed EAP-SIM and EAP-AKA AT_IDENTITY parsing (server only)
Jouni Malinen [Thu, 4 Dec 2008 16:51:42 +0000 (18:51 +0200)]
Fixed EAP-SIM and EAP-AKA AT_IDENTITY parsing (server only)

The attribute uses 'Actual Identity Length' field to indicate the exact
(pre-padding) length of the Identity. This actual length should be used
as the length, not the remaining attribute length.

This was previously worked around by stripping null termination away
from the end of the identity string at EAP-SIM and EAP-AKA server code.
However, it is likely that that workaround is not really needed and the
real problem was in AT_IDENTITY parsing. Anyway, the workaround is left
in just in case it was really needed with some implementations.

15 years agonl80211: Remove the debug print from data frame processing
Jouni Malinen [Thu, 4 Dec 2008 12:20:33 +0000 (14:20 +0200)]
nl80211: Remove the debug print from data frame processing

This is currently happening way too frequently (mac80211 monitor
interface sends TX info for every frame) and the end result makes it
difficult to read hostapd debug log if there is large amount of data
traffic.

15 years agoMade 802.11 management frame IE parser aware of vendor HT Capab IE
Jouni Malinen [Thu, 4 Dec 2008 11:42:33 +0000 (13:42 +0200)]
Made 802.11 management frame IE parser aware of vendor HT Capab IE

This IE is not (at least yet) actually used for anything, but parsing it
cleans up verbose debug log a bit since thie previously unknown, but
commonly used, vendor IE was being reported as unknown.