Commit message (Collapse)AuthorAgeFilesLines
* Update ChangeLog files for 0.7.0 releaseJouni Malinen2009-11-212-0/+48
* Fix a typo in a commentJouni Malinen2009-11-211-1/+1
* wpa_gui: Only move to WPS tab if inactive/disconnect and AP readyJouni Malinen2009-11-211-3/+6
| | | | | | | | This removes many of the cases where moving to the WPS tab can be undesired. It is really only useful if we are not currently connected and there is an AP available that would likely be able to provide us network connectivity with use of WPS (active PBC more or selected registrar set).
* OpenSSL: Remove unneeded MinGW CryptoAPI compat codeJouni Malinen2009-11-211-68/+0
| | | | | | The current MinGW/w32api versions seem to provide all the needed CryptoAPI functions, so the code for loading these dynamically from the DLL can be removed.
* GnuTLS: Fix compilation with newer GnuTLS versionsJouni Malinen2009-11-211-0/+4
| | | | Avoid duplicate defination of TLS_RANDOM_SIZE and TLS_MASTER_SIZE.
* Fix strict aliasing issue with the internal SHA-1 implementationJouni Malinen2009-11-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | Need to define the workspace buffer properly to allow compiler to handle strict aliasing between the incoming unsigned char[64] buffer as an u32 array. The previous version built with strict aliasing enabled can result in SHA-1 producing incorrect results and consequently, with 4-way handshake failing. This is based on a report and patch from Dan Williams <dcbw@redhat.com> but with a different type (the union) used as a fix to avoid needing extra type casting. Discovered as part of the investigation of: https://bugzilla.redhat.com/show_bug.cgi?id=494262#c32 if sha1 is built with gcc without turning off strict aliasing, it will fail to correctly generate the hashes and will fail its own testcases as well. Signed-off-by: Dan Williams <dcbw@redhat.com>
* WPS ER: Deinitialize protocol instance with STA after completionJouni Malinen2009-11-211-0/+12
| | | | | In addition, remove the WPS ER Enrollee entry 10 seconds after successful completion of the protocol run.
* wpa_gui: Add peers menu option for learning AP configuration (ER)Jouni Malinen2009-11-212-0/+35
* WPS ER: Use random event identifier in event URLJouni Malinen2009-11-212-3/+18
| | | | | | | | This avoids some issues in cases where the ER has been started and stopped multiple times on the same address and an AP may have stored multiple event notification addresses for the same ER. The random identifier allows the ER to filter out unexpected messages from further processing.
* WPS: Cleanup subscription URL list handlingJouni Malinen2009-11-213-6/+5
| | | | | | | Do not give the allocated memory to the subscription code since it was not using it as-is anyway. This makes it easier to understand who owns the allocation an is responsible of freeing it. This may potentially fix some memory leaks on error paths.
* WPS ER: Move SSDP functionality into a separate fileJouni Malinen2009-11-214-245/+284
* wpa_gui: Add peer dialog option for WPS PBCJouni Malinen2009-11-212-6/+50
| | | | | Use advertised configuration methods to determine whether WPS PBC and/or PIN methods should be allowed.
* wpa_gui: Add WPS config methods and device password ID into peer dataJouni Malinen2009-11-211-1/+74
* wpa_gui: Move peer tooltip into Properties dialogJouni Malinen2009-11-212-45/+122
| | | | | | | | Clean up the peer dialog information to be more user friendly. Only show the device type in the tooltip and move the verbose details into a separate area in a new Properties dialog. The new dialog will also show some of the standard fields with titles to make them easier to read.
* WPS ER: Add more AP information into the ctrl_interface messageJouni Malinen2009-11-214-14/+55
| | | | | This allow wpa_gui to show AP BSSID, WPS State (configured/unconfigured), and primary device type.
* WPS ER: Fetch AP's M1 to learn device type and WPS stateJouni Malinen2009-11-211-36/+90
* WPS ER: Use (addr,UUID) as the key for AP entriesJouni Malinen2009-11-211-17/+22
| | | | This allows multiple WPS AP instances to be supported per IP address.
* WPS ER: Stop AP unlink loop on matchJouni Malinen2009-11-211-0/+1
| | | | | There is no need to continue through the list after this, since the same AP entry can only be listed once.
* WPS ER: Move STA entry unlinking into a separate functionJouni Malinen2009-11-211-15/+22
* WPS ER: Fix AP entry freeing on timeoutJouni Malinen2009-11-211-0/+19
| | | | | Must unlink the entry first before trying to remove it to avoid leaving behind pointers to freed memory.
* WPS ER: Refresh ER data on WPS_ER_START when already startedJouni Malinen2009-11-203-1/+17
| | | | | This sends out the AP and Enrollee notifications for all tracked devices and generates a new SSDP search to find more APs.
* WPS ER: Fix Enrollee entry freeing on timeoutJouni Malinen2009-11-201-1/+15
| | | | | Must unlink the entry first before trying to remove it to avoid leaving behind pointers to freed memory.
* Add 'none' driver as an option for wpa_supplicantJouni Malinen2009-11-203-11/+50
| | | | | This can be used, e.g., with WPS ER when no network interface is actually used for IEEE 802.1X or wireless operations.
* wpa_gui: Avoid using freed item in enter_pin()Jouni Malinen2009-11-191-4/+9
| | | | | | | The Enrollee entry may be deleted while the PIN query dialog is open. To avoid crashing on using freed entry, copy the needed data into local variables before and use the local data after the PIN dialog has been closed.
* wpa_gui: Add AP and laptop icons for peer dialogJouni Malinen2009-11-198-9/+2455
| | | | | | | The peer entries are now using different icons based on their type. As a starting point, a separate AP and laptop icons are used. More icons may be added in the future to mark different device types (e.g., based on primary device type information from WPS).
* wpa_gui: Add support for multiple icon filesMike Shepherd2009-11-191-15/+11
* wpa_gui: Add preliminary WPS ER support into the peers dialogJouni Malinen2009-11-192-5/+177
* WPS: Fix MAC Address inside Credential be that of Enrollee'sJouni Malinen2009-11-183-3/+35
| | | | | | | | | | | | | | | The WPS 1.0h specification is quite unclear on what exactly should be used as the MAC Address value in the Credential and AP Settings. It looks like this should after all be the MAC Address of the Enrollee, so change Registrar implementation to use that address instead of the AP BSSID. In addition, add validation code to the Enrollee implementation to check the MAC Address value inside Credential (and also inside AP Settings) to make sure it matches with the Enrollee's own address. However, since there are deployed implementations that do not follow this interpretation of the spec, only show the mismatch in debug information to avoid breaking interoperability with existing devices.
* nl80211/SME: Use reassociation when roaming within the ESSJouni Malinen2009-11-175-0/+29
* wpa_supplicant: Fix ctrl_interface group permissions to allow read/executeAnders Aspegren Søndergaard2009-11-161-0/+8
| | | | | | | | When using umask 0077, the control interface directory was left without group read/execute permissions even if the configuration file explicitly asked for the group to be allowed to access the control interface. Fix this by adding read/execute permissions for group if a specific group is defined in the configuration. [Bug 199]
* hostapd: Fix endian bugs in STA HT capability handlingFelix Fietkau2009-11-161-14/+6
* hostapd: Fix BSS channel checks in 40 MHz scanFelix Fietkau2009-11-161-1/+2
* dbus: Allow only root to receive signalsWitold Sowa2009-11-161-1/+2
| | | | | | Change the dbus policy file to only allow root applications to receive signals from wpa_supplicant. This keeps WPS Credentials data secret from non-root listeners.
* wpa_gui-qt4: Fix build with Session Manager disabled in Qt4Christian Rüb2009-11-163-0/+10
| | | | | | | | | | | | | When trying to build wpa_gui (Qt4 version) from openembedded it fails because Qt4 is compiled without session manager and thus wpa_gui fails to compile. I attached a patch, that enables compiling without Session Manager (via preprocessor) if it is not compiled into Qt4; otherwise, it behaves as it does right now. I checked to build on my host (Debian unstable, Session Manager enabled) and openembedded (Session Manager disabled).
* WPS ER: Clear WPS protocol run on PutMessage failureJouni Malinen2009-11-151-0/+4
* WPS ER: Deinit WPS protocol data when freeing AP entryJouni Malinen2009-11-151-0/+2
* WPS ER: Deinit ER before WPS registrar/contextJouni Malinen2009-11-151-5/+5
| | | | | ER code may still touch WPS registrar/context during deinit, so better do that before freeing the other WPS components.
* WPS ER: Use learnt AP settings to build credentials for an EnrolleeJouni Malinen2009-11-153-10/+20
* WPS ER: Add command for fetching current AP settingsJouni Malinen2009-11-158-11/+355
* WPS: Determine the OpCode based on message type attribute (UPnP)Jouni Malinen2009-11-151-0/+11
| | | | | This allows WSC_ACK and WSC_NACK to be processed correctly in the AP when operating as an Enrollee with an ER over UPnP transport.
* WPS ER: Do not try to process AP Settings in proxied M7 to ERJouni Malinen2009-11-153-2/+8
| | | | | In this case, the Enrollee is not an AP, so do not try to process AP Settings in M7.
* WPS ER: Add preliminary PBC supportJouni Malinen2009-11-156-0/+58
| | | | | | This will need some additional code in wps_er_pbc() to handle PBC mode enabling for a single AP only. For now, this can only be expected to work when the ER is connected to a single AP.
* WPS ER: Only send Enrollee notification on Probe Request and M1Jouni Malinen2009-11-151-4/+16
| | | | No need to do this for M3..M7 or NACK/ACK/Done messages.
* WPS: Do not use ASCII-dump on binary PutWLANResponse NewMessageJouni Malinen2009-11-151-2/+2
* WPS ER: Add ctrl_iface notifications for AP/Enrollee add/removeJouni Malinen2009-11-154-2/+188
* WPS ER: Store AP UUID in binary format for future useJouni Malinen2009-11-151-0/+7
* WPS: Use a dummy WSC_ACK as WLANEvent as the initial event if neededJouni Malinen2009-11-141-3/+43
| | | | | | | UPnP device architecture specification requires all evented variables to be included in the initial event message after subscription. Since this can happen before we have seen any events, generated a dummy event (WSC_ACK with all-zeros nonces) if needed.
* WPS: Send SSDP byebye notifications when stopping UPnP advertisementsJouni Malinen2009-11-143-5/+36
| | | | | | This will notify control points of the services going away and allows them to notice this without having to wait timeout on the initial advertisements.
* dbus: Use method/property/signal handler arrays for registrationJouni Malinen2009-11-143-358/+336
| | | | | | Clean up registration of large number of dbus method/property/signal handlers by using arrays containing all the information needed to call the registration functions.
* dbus: Remove duplicated error printing from registrationJouni Malinen2009-11-141-424/+163
| | | | | wpa_dbus_{method,property,signal}_register() are now taking care of error printing, so no need to duplicate the same code everywhere.