Commit Graph

1466 Commits (64ce68fc420c4cb99e042140222f1720b6ff916d)
 

Author SHA1 Message Date
Jouni Malinen 64ce68fc42 Comment out CONFIG_IPV6 for now in RADIUS library build
This needs to be used consistently in order to get correct size for
struct hostapd_ip_addr.
15 years ago
Jouni Malinen e20845184a Build radius_example using src/*/lib*.a 15 years ago
Jouni Malinen 174e899f69 Fix RADIUS client callback function parameters 15 years ago
Jouni Malinen 8a404b598d Add build rules for src/radius/libradius.a 15 years ago
Jouni Malinen 019c8c669d Fix radius_example build 15 years ago
Felix Fietkau fbbfcbac29 hostapd: Add WDS (4-address frame) mode with per-station interfaces
This mode allows associated stations to use 4-address frames to allow
layer 2 bridging to be used. At least for the time being, this is only
supported with driver=nl80211.
15 years ago
Jouni Malinen 09eac1ac56 nl80211: Sync with wireless-testing.git linux/nl80211.h 15 years ago
Jouni Malinen 2a29f0d45c Rename EAP TLS variables to make server and peer code consistent 15 years ago
Jouni Malinen 09e47a0768 Convert to use struct dl_list 15 years ago
Jouni Malinen 3e82a2ed62 Add developer documentation for WPA_TRACE 15 years ago
Jouni Malinen 96603e4fe1 Comment CONFIG_WPA_TRACE_BFD=y out by default 15 years ago
Jouni Malinen bf5d6fc37e Update documentation for uni tests to use the new tests directory 15 years ago
Jouni Malinen a5b9337fc8 Avoid NULL dereference on error path when default driver is used 15 years ago
Jouni Malinen 5e5223bf29 trace: Show eloop unregistered handler function name/file/line 15 years ago
Jouni Malinen 94caf8cd62 trace: Filter out uninteresting functions from backtrace
This filters out the functions inside trace.c and functions before
main() since those are not relevant to the actual issue that is being
reported.
15 years ago
Jouni Malinen a6ff0e0810 trace: Add active reference tracking
This WPA_TRACE=y additions allows components to register active references
to memory that has been provided to them as a pointer. If such an actively
referenced memory area is freed, tracer will report this as an error and
backtraces of both the invalid free and the location where this pointer
was marked referenced are shown.
15 years ago
Jouni Malinen a698d28415 Check fread return value 15 years ago
Jouni Malinen 7bf127572c nl80211: Use couple more os_*() wrappers for allocation 15 years ago
Jouni Malinen 79d6c85ffd Fix memory leak in config freeing
Both supported_rates and basic_rates arrays must be freed when freeing
hostapd configuration.
15 years ago
Jouni Malinen e62fb0a0de nl80211: Use os_* allocation wrappers to avoid WPA_TRACE issues 15 years ago
Jouni Malinen 094393b144 Copy config_methods and device_type configuration for AP mode 15 years ago
Jouni Malinen c0e4dd9eeb WPS: Make Config Methods configurable for wpa_supplicant
This adds config_methods configuration option for wpa_supplicant
following the design used in hostapd. In addition, the string is
now parsed in common code from src/wps/wps_common.c and the list
of configurable methods include all the defined methods from
WPS 1.0h spec.
15 years ago
Jouni Malinen b64576fcf5 WPS: Prefer PSK format if Enrollee does not advertise Display
Since an Enrollee that does not advertise display as one of the
Config Methods is unlikely to be able to show the ASCII passphrase
to the user, prefer PSK format with such an Enrollee to reduce key
derivation time. This can help with some low-powered devices that
would take long time to derive the PSK from the passphrase.
15 years ago
Jouni Malinen f3f2eeba01 WPS: Add option for forcing Registrar to use PSK format in Credential
The use_psk_key parameter can now be used to force the Registrar to
use PSK format instead of ASCII passphrase when building a Credential
for the Enrollee. For now, this is not enabled, but it could be enabled
either based on external (to WPS) configuration or automatically set
based on some WPS attribute values from the Enrollee.
15 years ago
Jouni Malinen 0ae687bd10 AP: Allow both WPA passphrase and PSK to be configured
Instead of dropping the configured PSK and deriving it based on
passphrase, use the provided PSK as-is and also maintain a copy of
the passphrase since it can be of use later. This allows both values
to be configured without havign to derive the PSK every time the
network is initialized.
15 years ago
Jouni Malinen 1078126f64 Add "keypad" to config methods for wpa_supplicant AP mode with WPS 15 years ago
Jouni Malinen b22b41ee87 Describe tracing build options for developers 15 years ago
Jouni Malinen f2f7d965b8 Add option libbfd support for tracing code
CONFIG_WPA_TRACE=y and CONFIG_WPA_TRACE_BFD=y can now be used to get
even more complete symbols (func/file/line and inline functions) for
backtraces.
15 years ago
Jouni Malinen b763863d97 GnuTLS: Implement tls_connection_enable_workaround() 15 years ago
Jouni Malinen 9dd37a224b GnuTLS: Add support for piggybacked Application Data 15 years ago
Jouni Malinen c9a7bbe5a8 GnuTLS: Define empty tls_connection_set_session_ticket_cb()
This allows EAP-FAST build to be completed even if it does not actually
work yet with GnuTLS.
15 years ago
Jouni Malinen 6d59e14c58 dbus: Fix build with "ctrl_iface_" prefix removed 15 years ago
Jouni Malinen 496c5d981e Use wpabuf with tls_connection_ia_send_phase_finished() 15 years ago
Jouni Malinen a206a29a54 dbus: Remove the confusing "ctrl_iface_" prefix from file names
The D-Bus interface does not really have anything to do with the
wpa_supplicant ctrl_iface interface and as such, this prefix in
dbus files is both confusing and unnecessarily. Make the file names
shorter by removing this prefix.
15 years ago
Jouni Malinen 36da1358bc dbus: Move some of conditional WPS code into separate files 15 years ago
Jouni Malinen a8c481c10a dbus: Remove unnecessary CONFIG_WPS ifdefs from header files 15 years ago
Jouni Malinen eb3b34ceea dbus: Clean dbus build files on wpa_supplicant 'make clean'
In addition, add preliminary build rules for build libwpadbus.a.
15 years ago
Jouni Malinen 926ab7e6a0 dbus: Rename .service file to use the service name as the file name 15 years ago
Witold Sowa 65bea134ad dbus: Add missing .service file for the new D-Bus API 15 years ago
Jouni Malinen 19b3211d19 Move D-Bus related files into their own subdirectory 15 years ago
Jouni Malinen 2944656925 Allow TLS flags to be configured (allow MD5, disable time checks)
Undocumented (at least for the time being) TLS parameters can now
be provided in wpa_supplicant configuration to enable some workarounds
for being able to connect insecurely to some networks. phase1 and
phase2 network parameters can use following options:
tls_allow_md5=1
- allow MD5 signature to be used (disabled by default with GnuTLS)
tls_disable_time_checks=1
- ignore certificate expiration time

For now, only the GnuTLS TLS wrapper implements support for these.
15 years ago
Jouni Malinen 4a1e97790d GnuTLS: Report certificate validation failures with TLS alert
In addition, show more detailed reason for the failure in debug log.
15 years ago
Jouni Malinen a86a7316a4 OpenSSL: Fix memleak in previous wpabuf changes on an error path 15 years ago
Jouni Malinen 2574634b7f Check TLS status on EAP server during handshake
The new TLS wrapper use may end up returning alert data and we need to
make sure here that it does not end up getting interpreted as success
due to non-NULL response.
15 years ago
Jouni Malinen 074be2332f GnuTLS: Use struct wpabuf for push/pull buffers 15 years ago
Jouni Malinen 81c85c069a Convert TLS wrapper to use struct wpabuf
This converts tls_connection_handshake(),
tls_connection_server_handshake(), tls_connection_encrypt(), and
tls_connection_decrypt() to use struct wpa_buf to allow higher layer
code to be cleaned up with consistent struct wpabuf use.
15 years ago
Jouni Malinen 94c3e91fc5 Add empty FIPS PRF wrapper for CryptoAPI 15 years ago
Jouni Malinen 8f431bc808 Add empty crypto_mod_exp() wrapper for CryptoAPI. 15 years ago
Jouni Malinen de979ef18c Fix MinGW build: CertCreateCertificateContext() is now known 15 years ago
Jouni Malinen f266d1a162 eloop_win: Fix build after eloop user_data removal 15 years ago