aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
* OpenBSD: wired IEEE 802.1X for OpenBSDMasashi Honma2009-08-262-3/+11
| | | | | | | | | | | | This is a patch for OpenBSD wired IEEE 802.1X. This is only for wired, not wireless, because OpenBSD uses wpa_supplicant only on wired now. http://www.openbsd.org/cgi-bin/cvsweb/ports/security/wpa_supplicant/ I have tested with these. OS : OpenBSD 4.5 EAP : EAP-TLS Switch : CentreCOM 8724SL
* Avoid a theoretical integer overflow in base64_encode()Jouni Malinen2009-08-131-0/+2
| | | | | | | | | | | If base64_encode() were to be used with a huge data array, the previous version could have resulted in overwriting the allocated buffer due to an integer overflow as pointed out in http://www.freebsd.org/cgi/query-pr.cgi?pr=137484. However, there are no know use cases in hostapd or wpa_supplicant that would do that. Anyway, the recommended change looks reasonable and provides additional protection should the base64_encode() function be used for something else in the future.
* Crypto build cleanup: remove INTERNAL_MD5Johannes Berg2009-07-281-2/+0
| | | | | Instead of using a define and conditional building of md5.c parts, move the internal-MD5 into a separate file.
* Crypto build cleanup: remove INTERNAL_MD4Johannes Berg2009-07-281-2/+0
| | | | | In addition, rename md4.c to md4-internal.c to match in style with SHA-1 conditionally built internal implementation.
* Crypto build cleanup: remove INTERNAL_SHA256Johannes Berg2009-07-281-1/+0
| | | | | Instead of using a define and conditional building of sha256.c parts, move the internal-SHA256 into a separate file.
* Crypto build cleanup: remove INTERNAL_AESJohannes Berg2009-07-281-2/+0
| | | | | In addition, rename aes.c to aes-internal.c to match in style with SHA-1 conditionally built internal implementation.
* Crypto build cleanup: remove INTERNAL_DESJohannes Berg2009-07-281-2/+0
| | | | | In addition, rename des.c to des-internal.c to match in style with SHA-1 conditionally built internal implementation.
* Crypto build cleanup: remove INTERNAL_SHA1Johannes Berg2009-07-281-2/+0
| | | | | Instead of using a define and conditional building of sha1.c parts, move the internal-SHA-1 into a separate file.
* Add root .gitignore file to cleanup ignore listsJouni Malinen2009-06-291-1/+0
| | | | | | This removes need for local configuration to ignore *.o and *~ and allows the src/*/.gitignore files to be removed (subdirectories will inherit the rules from the root .gitignore).
* FT: Add RIC Request generation and validation (but not processing)Jouni Malinen2009-03-091-0/+6
| | | | | | | | | | | | This adds first part of FT resource request as part of Reassocition Request frame (i.e., FT Protocol, not FT Resource Request Protocol). wpa_supplicant can generate a test resource request when driver_test.c is used with internal MLME code and hostapd can verify the FTIE MIC properly with the included RIC Request. The actual RIC Request IEs are not processed yet and hostapd does not yet reply with RIC Response (nor would wpa_supplicant be able to validate the FTIE MIC for a frame with RIC Response).
* Add support for wpa_supplicant syslog outputSam Leffler2009-03-022-0/+64
| | | | | Enable for build: CFLAGS += -DCONFIG_DEBUG_SYSLOG in .config Enable at runtime: -s on command line
* Improved 'make install' (use BINDIR/LIBDIR, install shared objects)Daniel Mierswa2009-02-151-0/+3
|
* Create os_daemon for OS X, as it's now deprecated (Leopard)Alan T. DeKok2009-02-081-1/+36
| | | | Using it results in an error at build time. So we replace it.
* WPS: Add support for external Registrars using UPnP transportJouni Malinen2009-01-292-2/+23
| | | | | | | | | | | | | This adds mostly feature complete external Registrar support with the main missing part being proper support for multiple external Registrars working at the same time and processing of concurrent registrations when using an external Registrar. This code is based on Sony/Saice implementation (https://www.saice-wpsnfc.bz/) and the changes made by Ted Merrill (Atheros) to make it more suitable for hostapd design and embedded systems. Some of the UPnP code is based on Intel's libupnp. Copyrights and licensing are explained in src/wps/wps_upnp.c in more detail.
* WPS: Pad DH Public Key and Shared Key to 192 octetsJouni Malinen2009-01-222-0/+36
| | | | | | | | | | WPS spec is not very specific on the presentation used for the DH values. The Public Key attribute is described to be 192 octets long, so that could be interpreted to imply that other places use fixed length presentation for the DH keys. Change the DH derivation to use fixed length bufferd by zero padding them from beginning if needed. This can resolve infrequent (about 1/256 chance for both Public Key and Shared Key being shorter) interop issues.
* Share the same radiotap helper implementationJouni Malinen2009-01-093-0/+570
|
* Fix wpa_supplicant build for uClinuxIhar Hrachyshka2009-01-051-3/+3
| | | | The code contains a bogus #ifdef for uClinux building. [Bug 286]
* Silenced number of Doxygen warningsJouni Malinen2009-01-043-5/+5
|
* Fixed sparse warnings about integer vs. pointer useJouni Malinen2009-01-031-2/+1
| | | | | | | The configuration parsing functions seemed to have worked fine before, but these were real bugs even if they did not show up in practice. hostapd_ip_diff() was broken for IPv6 addresses (overwrote address and always returned 1.
* Fixed number of doxygen warningsJouni Malinen2009-01-021-1/+1
|
* WPS: Generate UUID based on MAC address, if not setJouni Malinen2009-01-012-0/+31
| | | | | | Generate a SHA1 hash -based UUID from the local MAC address if the UUID was not configured. This makes it easier to prepare for WPS since there is no need to generate an UUID.
* Workaround number of compiler warnings with newer MinGW versionJouni Malinen2008-12-111-2/+1
|
* WPS: Moved UUID configuration from phase1 into global config areaJouni Malinen2008-11-262-0/+11
|
* Verify fread(), fwrite(), and system() return valuesJouni Malinen2008-10-291-1/+6
| | | | | These were starting to trigger compiler warning with recent glibc header files and gcc.
* Introduced new helper function is_zero_ether_addr()Jouni Malinen2008-06-031-0/+4
| | | | | Use this inline function to replace os_memcmp(addr, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) == 0.
* Do not continually reschedule specific scans to help finding hidden SSIDsDan Williams2008-06-034-0/+71
| | | | | | | | | | | In situations where the driver does background scanning and sends a steady stream of scan results, wpa_supplicant would continually reschedule the scan. This resulted in specific SSID scans never happening for a hidden AP, and the supplicant never connecting to the AP because it never got found. Instead, if there's an already scheduled scan, and a request comes in to reschedule it, and there are enabled scan_ssid=1 network blocks, let the scan happen anyway so the hidden SSID has a chance to be found.
* EAP-FAST: Cleaned up TLV processing and added support for EAP SequencesJouni Malinen2008-02-272-1/+39
| | | | | | | | Number of TLVs were processed in groups and these cases were now separated into more flexible processing of one TLV at the time. wpabuf_concat() function was added to make it easier to concatenate TLVs. EAP Sequences are now supported in both server and peer code, but the server side is not enabled by default.
* Verify that os_get_time() does not fail before using the time value whenJouni Malinen2008-02-271-1/+4
| | | | registering an eloop timeout.
* Fixed base64_decode() reject empty input buffersJouni Malinen2008-02-271-1/+1
|
* Re-initialize hostapd/wpa_supplicant git repository based on 0.6.3 releaseJouni Malinen2008-02-2728-0/+7160