libeap.git
14 years agoSplit hostapd_interface_deinit() into deinit and free parts
Jouni Malinen [Sun, 27 Dec 2009 19:31:13 +0000 (21:31 +0200)]
Split hostapd_interface_deinit() into deinit and free parts

This allows the driver interface to be deinitialized before
struct hostapd_data instance gets freed. This needs to be done so
that the driver wrapper does not maintain a context pointer to
freed memory.

14 years agotest: Add WPA_TRACE reference check for driver ctx
Jouni Malinen [Sun, 27 Dec 2009 19:20:25 +0000 (21:20 +0200)]
test: Add WPA_TRACE reference check for driver ctx

This will catch too early freeing of the context pointer before the
driver wrapper has been deinitialized.

14 years agoAdd BSS table to track scan results without dropping information
Jouni Malinen [Sun, 27 Dec 2009 19:07:47 +0000 (21:07 +0200)]
Add BSS table to track scan results without dropping information

Collect information from scan results into a BSS table that will not
expire information as quickly as scan results where every new scan,
no matter for how limited set of channels/SSIDs, clears all old
information.

For now, this is only used for D-Bus BSS added/removed notifications,
but this will likely be extended to be used internally instead of the
scan results to better support partial scans.

14 years agoFix a typo in a doxygen comment
Jouni Malinen [Sun, 27 Dec 2009 15:13:15 +0000 (17:13 +0200)]
Fix a typo in a doxygen comment

14 years agodbus: Split message_handler() into readable helper functions
Jouni Malinen [Sat, 26 Dec 2009 19:26:56 +0000 (21:26 +0200)]
dbus: Split message_handler() into readable helper functions

14 years agoImport http://student.agh.edu.pl/~wsowa/new-dbus-api.html
Jouni Malinen [Sat, 26 Dec 2009 17:54:24 +0000 (19:54 +0200)]
Import student.agh.edu.pl/~wsowa/new-dbus-api.html

Import D-Bus API reference into Doxygen documentation for
wpa_supplicant.

14 years agodbus: Add an example python script for using the new dbus interface
Jouni Malinen [Sat, 26 Dec 2009 16:41:01 +0000 (18:41 +0200)]
dbus: Add an example python script for using the new dbus interface

This has example code for fetching and interface object and optionally
creating a new interface is one is not found. After that, a scan is
requested and the script continues to listed for signals from
wpa_supplicant and print information about scan results and state
changes.

14 years agodbus: Remove unnecessary indentation by cleaning up if/else structure
Jouni Malinen [Sat, 26 Dec 2009 15:28:19 +0000 (17:28 +0200)]
dbus: Remove unnecessary indentation by cleaning up if/else structure

14 years agodbus: split wpas_dbus_handler_scan() into number of helper functions
Jouni Malinen [Sat, 26 Dec 2009 15:06:28 +0000 (17:06 +0200)]
dbus: split wpas_dbus_handler_scan() into number of helper functions

Make this code readable by splitting it into pieces and fix couple of
emmory leaks on error paths.

14 years agodbus: Fix build without os_free available as a pointer
Jouni Malinen [Sat, 26 Dec 2009 14:20:37 +0000 (16:20 +0200)]
dbus: Fix build without os_free available as a pointer

Need to add a wrapper function to be able to handle the need for
having a function pointer for freeing function for dbus use.

14 years agodbus: Fix Scan invalid args reporting (uninitialize variable)
Jouni Malinen [Sat, 26 Dec 2009 12:37:04 +0000 (14:37 +0200)]
dbus: Fix Scan invalid args reporting (uninitialize variable)

Must initialize key to be NULL since it can be used in an error
message. If the Scan method did not actually include any dict entries,
the uninitialized pointer was used and this could result in
wpa_supplicant crashing.

14 years agoeloop: Fix timeout handler to use local copy of func pointer
Jouni Malinen [Sat, 26 Dec 2009 12:30:50 +0000 (14:30 +0200)]
eloop: Fix timeout handler to use local copy of func pointer

We need to copy not only the context pointers, but also the function
pointer before the timeout gets freed.

14 years agodbus: show messages in debug log
Jouni Malinen [Sat, 26 Dec 2009 12:14:31 +0000 (14:14 +0200)]
dbus: show messages in debug log

14 years agodbus: Check that wpa_s->scan_res != NULL before dereferencing it
Jouni Malinen [Sat, 26 Dec 2009 11:55:22 +0000 (13:55 +0200)]
dbus: Check that wpa_s->scan_res != NULL before dereferencing it

14 years agoIndicate interface removal only if the interface was added successfully
Jouni Malinen [Sat, 26 Dec 2009 11:45:07 +0000 (13:45 +0200)]
Indicate interface removal only if the interface was added successfully

14 years agodbus: Fix wpa_supplicant_add_iface() calls
Jouni Malinen [Sat, 26 Dec 2009 11:36:05 +0000 (13:36 +0200)]
dbus: Fix wpa_supplicant_add_iface() calls

Removed the hack that used typecast to get rid of const by using local
variables that are allocated and freed. Fix couple of memory leaks
and check that the required Ifname parameter is included.

14 years agodbus: Use os_*() wrappers for memory allocations consistently
Jouni Malinen [Sat, 26 Dec 2009 10:29:24 +0000 (12:29 +0200)]
dbus: Use os_*() wrappers for memory allocations consistently

This is needed to avoid bogus WPA_TRACE error reports.

14 years agoGet rid of unnecessary typedefs for enums.
Jouni Malinen [Sat, 26 Dec 2009 08:35:08 +0000 (10:35 +0200)]
Get rid of unnecessary typedefs for enums.

14 years agoInclude header files explicitly in *.c, not via header files
Jouni Malinen [Fri, 25 Dec 2009 22:31:51 +0000 (00:31 +0200)]
Include header files explicitly in *.c, not via header files

14 years agoReplace src/ap/driver_i.h with non-inlined functions in ap_drv_ops.c
Jouni Malinen [Fri, 25 Dec 2009 22:21:22 +0000 (00:21 +0200)]
Replace src/ap/driver_i.h with non-inlined functions in ap_drv_ops.c

14 years agoRemove ap_config.h dependency from driver_i.h
Jouni Malinen [Fri, 25 Dec 2009 22:12:25 +0000 (00:12 +0200)]
Remove ap_config.h dependency from driver_i.h

This adds explicit #include line for ap_config.h into the src/ap/*.c
files that actually use the definitions from there.

14 years agoRename some src/ap files to avoid duplicate file names
Jouni Malinen [Fri, 25 Dec 2009 22:05:40 +0000 (00:05 +0200)]
Rename some src/ap files to avoid duplicate file names

Doxygen and some build tools may get a bit confused about same file
name being used in different directories. Clean this up a bit by
renaming some of the duplicated file names in src/ap.

14 years agoAdd new src/ap directory into Doxygen documents
Jouni Malinen [Fri, 25 Dec 2009 21:32:49 +0000 (23:32 +0200)]
Add new src/ap directory into Doxygen documents

14 years agoGet rid of direct hostapd_for_each_interface() calls
Jouni Malinen [Fri, 25 Dec 2009 18:12:26 +0000 (20:12 +0200)]
Get rid of direct hostapd_for_each_interface() calls

src/ap/*.c must not call functions in hostapd or wpa_supplicant
directories directly, so avoid this by using a callback function
pointer.

14 years agoMove rest of the generic AP mode functionality into src/ap
Jouni Malinen [Fri, 25 Dec 2009 18:06:07 +0000 (20:06 +0200)]
Move rest of the generic AP mode functionality into src/ap

14 years agotest: Use more shared code for driver wrapper AP and station modes
Jouni Malinen [Fri, 25 Dec 2009 17:48:41 +0000 (19:48 +0200)]
test: Use more shared code for driver wrapper AP and station modes

This fixes AP mode use in wpa_supplicant with the
no-AP-driver-wrapper design.

14 years agoDo not use virtual driver_ops for wpa_supplicant AP mode
Jouni Malinen [Fri, 25 Dec 2009 17:47:08 +0000 (19:47 +0200)]
Do not use virtual driver_ops for wpa_supplicant AP mode

Initialize struct hostapd_data driver context with the same driver
information that was initialized earlier during wpa_supplicant start.
This allows the AP mode operations to be completed directly with the
same calls in AP code without having to maintain a separate translation
layer between the AP and station mode driver context.

14 years agoMove driver deinitialization away from hostapd.c
Jouni Malinen [Fri, 25 Dec 2009 16:32:44 +0000 (18:32 +0200)]
Move driver deinitialization away from hostapd.c

This matches with the earlier change of moving driver initialization
and allows more control on how the driver context is managed.

14 years agoClean up some of the hostapd.h function prototype definitions
Jouni Malinen [Fri, 25 Dec 2009 12:20:35 +0000 (14:20 +0200)]
Clean up some of the hostapd.h function prototype definitions

Not all prototypes in hostapd.h really belong there. This is an initial
step in cleaning that up.

14 years agoMove hostapd_prune_associations() into ap/utils.c
Jouni Malinen [Fri, 25 Dec 2009 12:06:26 +0000 (14:06 +0200)]
Move hostapd_prune_associations() into ap/utils.c

14 years agoMove WPA authenticator glue code into a separate file
Jouni Malinen [Fri, 25 Dec 2009 12:02:17 +0000 (14:02 +0200)]
Move WPA authenticator glue code into a separate file

14 years agoMove authentication server setup into separate file
Jouni Malinen [Fri, 25 Dec 2009 11:43:43 +0000 (13:43 +0200)]
Move authentication server setup into separate file

14 years agoMove iapp.c into src/ap
Jouni Malinen [Fri, 25 Dec 2009 11:04:45 +0000 (13:04 +0200)]
Move iapp.c into src/ap

14 years agoMove ctrl_iface_ap.c into src/ap
Jouni Malinen [Fri, 25 Dec 2009 10:25:55 +0000 (12:25 +0200)]
Move ctrl_iface_ap.c into src/ap

14 years agoMove hostapd driver initialization away from hostapd.c
Jouni Malinen [Fri, 25 Dec 2009 10:21:11 +0000 (12:21 +0200)]
Move hostapd driver initialization away from hostapd.c

This makes it easier to customize AP mode initialization for
wpa_supplicant.

14 years agoFix wpa_supplicant CONFIG_AP build
Jouni Malinen [Fri, 25 Dec 2009 10:06:53 +0000 (12:06 +0200)]
Fix wpa_supplicant CONFIG_AP build

14 years agowired: Use os_*() wrappers more consistently
Jouni Malinen [Fri, 25 Dec 2009 09:54:02 +0000 (11:54 +0200)]
wired: Use os_*() wrappers more consistently

Need to allocate and free memory with same style to avoid WPA_TRACE
errors.

14 years agohostapd: Do not call eloop_terminate() on interface setup failure
Jouni Malinen [Fri, 25 Dec 2009 09:51:20 +0000 (11:51 +0200)]
hostapd: Do not call eloop_terminate() on interface setup failure

The caller is able to handle the error code properly and there is no
need to forcefully stop the eloop run here.

14 years agoAdd forgotten src/ap/utils.c file
Jouni Malinen [Thu, 24 Dec 2009 23:31:28 +0000 (01:31 +0200)]
Add forgotten src/ap/utils.c file

Commit 32da61d9c9594a35db46dacd8ca3e0ae7167bac2 was supposed to add
this file.

14 years agoWPS: Fix a memory leak if set_ie_cb() is not set
Jouni Malinen [Thu, 24 Dec 2009 23:29:59 +0000 (01:29 +0200)]
WPS: Fix a memory leak if set_ie_cb() is not set

Skip WPS IE building for Beacon and Probe Response frames is set_ie_cb()
is not set. This fixes a memory leak and optimizes operations by not
allocating memory and building the WPS IEs unnecessarily.

14 years agoMove wps_hostapd.c into src/ap
Jouni Malinen [Thu, 24 Dec 2009 23:26:37 +0000 (01:26 +0200)]
Move wps_hostapd.c into src/ap

14 years agoMove generic AP functionality implementation into src/ap
Jouni Malinen [Thu, 24 Dec 2009 23:12:50 +0000 (01:12 +0200)]
Move generic AP functionality implementation into src/ap

This code can be shared by both hostapd and wpa_supplicant and this
is an initial step in getting the generic code moved to be under the
src directories. Couple of generic files still remain under the
hostapd directory due to direct dependencies to files there. Once the
dependencies have been removed, they will also be moved to the src/ap
directory to allow wpa_supplicant to be built without requiring anything
from the hostapd directory.

14 years agoRemove direct driver calls from tkip_countermeasures.c
Jouni Malinen [Thu, 24 Dec 2009 22:39:22 +0000 (00:39 +0200)]
Remove direct driver calls from tkip_countermeasures.c

14 years agoRemove direct driver calls from ieee802_11.c
Jouni Malinen [Thu, 24 Dec 2009 22:35:10 +0000 (00:35 +0200)]
Remove direct driver calls from ieee802_11.c

14 years agoRemove direct driver calls from sta_info.c
Jouni Malinen [Thu, 24 Dec 2009 22:30:16 +0000 (00:30 +0200)]
Remove direct driver calls from sta_info.c

14 years agoRemove direct driver calls from vlan_init.c
Jouni Malinen [Thu, 24 Dec 2009 22:17:07 +0000 (00:17 +0200)]
Remove direct driver calls from vlan_init.c

14 years agoRemove direct driver calls from beacon.c
Jouni Malinen [Thu, 24 Dec 2009 22:10:31 +0000 (00:10 +0200)]
Remove direct driver calls from beacon.c

14 years agoRemove need for direct driver calls from ieee802_11_auth.c
Jouni Malinen [Thu, 24 Dec 2009 21:49:19 +0000 (23:49 +0200)]
Remove need for direct driver calls from ieee802_11_auth.c

14 years agoAvoid direct call to hostapd_new_assoc_sta from ieee802_11.c
Jouni Malinen [Thu, 24 Dec 2009 21:42:13 +0000 (23:42 +0200)]
Avoid direct call to hostapd_new_assoc_sta from ieee802_11.c

14 years agoRemoved hostapd_new_assoc_sta() from driver wrapper API
Jouni Malinen [Thu, 24 Dec 2009 21:30:32 +0000 (23:30 +0200)]
Removed hostapd_new_assoc_sta() from driver wrapper API

This is not called directly by any of the driver wrappers anymore, so
the function can be removed from driver.h and drv_callbacks.c.

14 years agoAvoid a direct call to drv_callbacks.c from beacon.c
Jouni Malinen [Thu, 24 Dec 2009 21:20:53 +0000 (23:20 +0200)]
Avoid a direct call to drv_callbacks.c from beacon.c

14 years agoMove hostapd_set_drv_ieee8021x() into ap_drv_ops
Jouni Malinen [Thu, 24 Dec 2009 21:17:11 +0000 (23:17 +0200)]
Move hostapd_set_drv_ieee8021x() into ap_drv_ops

14 years agoMove hostapd-to-driver flag mapping to be within ap_drv_ops.c
Jouni Malinen [Thu, 24 Dec 2009 21:11:16 +0000 (23:11 +0200)]
Move hostapd-to-driver flag mapping to be within ap_drv_ops.c

14 years agoMove wpa_drivers dependency into config_file.c
Jouni Malinen [Thu, 24 Dec 2009 20:50:17 +0000 (22:50 +0200)]
Move wpa_drivers dependency into config_file.c

This cleans up config.o from driver wrapper dependencies.

14 years agoRemove direct driver calls from accounting.c
Jouni Malinen [Thu, 24 Dec 2009 20:24:57 +0000 (22:24 +0200)]
Remove direct driver calls from accounting.c

14 years agoMove hostapd configuration parser into separate file
Jouni Malinen [Thu, 24 Dec 2009 19:05:40 +0000 (21:05 +0200)]
Move hostapd configuration parser into separate file

config.c includes now only the generic helper functions that are needed
both for hostapd and the AP mode operations in wpa_supplicant.
hostapd/config_file.c is only needed for hostapd.

14 years agoMove more driver ops into struct hostapd_driver_ops
Jouni Malinen [Thu, 24 Dec 2009 18:41:30 +0000 (20:41 +0200)]
Move more driver ops into struct hostapd_driver_ops

This removes need to include driver_i.h into ieee802_1x.c.

14 years agoMove hostapd_set_privacy() call to hostapd.c
Jouni Malinen [Thu, 24 Dec 2009 18:18:55 +0000 (20:18 +0200)]
Move hostapd_set_privacy() call to hostapd.c

IEEE 802.1X code does not need to know about this driver configuration
mechanism and all the other calls were already in hostapd.c.

14 years agoUse hostapd driver op wrapper for send_mgmt_frame
Jouni Malinen [Thu, 24 Dec 2009 18:13:44 +0000 (20:13 +0200)]
Use hostapd driver op wrapper for send_mgmt_frame

14 years agoMerge driver ops set_wps_beacon_ie and set_wps_probe_resp_ie
Jouni Malinen [Thu, 24 Dec 2009 17:46:06 +0000 (19:46 +0200)]
Merge driver ops set_wps_beacon_ie and set_wps_probe_resp_ie

set_ap_wps_ie() is not used to set WPS IE for both Beacon and Probe
Response frames with a single call. In addition, struct wpabuf is used
instead of separate u8* and length fields. This avoids duplicated
allocation of the IEs and simplifies code in general.

14 years agohostapd: Use separate driver operations abstraction
Jouni Malinen [Thu, 24 Dec 2009 14:15:22 +0000 (16:15 +0200)]
hostapd: Use separate driver operations abstraction

It would be bettet to avoid including driver_i.h, i.e., direct driver
operation calls from hostapd components. This is an initial step in
that direction for WPS IE updates.

14 years agoDrop WPA_TRACE reference before eloop timeout handler call
Jouni Malinen [Thu, 24 Dec 2009 10:41:20 +0000 (12:41 +0200)]
Drop WPA_TRACE reference before eloop timeout handler call

This avoids bogus error reports for cases where the timeout handler
frees the memory that was pointed to by the eloop timeout context.

14 years agoEnable IPv6 support for libutils.a and libradius.a
Jouni Malinen [Thu, 24 Dec 2009 10:27:42 +0000 (12:27 +0200)]
Enable IPv6 support for libutils.a and libradius.a

14 years agoRedesign struct hostapd_ip_addr to be of fixed size
Jouni Malinen [Thu, 24 Dec 2009 10:26:47 +0000 (12:26 +0200)]
Redesign struct hostapd_ip_addr to be of fixed size

This structure is embedded in some other structures and as such, it
would be nicer if this would not change its length based on build
options.

14 years agoradius_example: Fix memory leak on deinit
Jouni Malinen [Thu, 24 Dec 2009 10:18:57 +0000 (12:18 +0200)]
radius_example: Fix memory leak on deinit

14 years agoComment out CONFIG_IPV6 for now in RADIUS library build
Jouni Malinen [Thu, 24 Dec 2009 10:18:22 +0000 (12:18 +0200)]
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.

14 years agoBuild radius_example using src/*/lib*.a
Jouni Malinen [Thu, 24 Dec 2009 10:05:51 +0000 (12:05 +0200)]
Build radius_example using src/*/lib*.a

14 years agoFix RADIUS client callback function parameters
Jouni Malinen [Thu, 24 Dec 2009 10:03:40 +0000 (12:03 +0200)]
Fix RADIUS client callback function parameters

14 years agoAdd build rules for src/radius/libradius.a
Jouni Malinen [Thu, 24 Dec 2009 09:59:08 +0000 (11:59 +0200)]
Add build rules for src/radius/libradius.a

14 years agoFix radius_example build
Jouni Malinen [Thu, 24 Dec 2009 09:58:19 +0000 (11:58 +0200)]
Fix radius_example build

14 years agohostapd: Add WDS (4-address frame) mode with per-station interfaces
Felix Fietkau [Thu, 24 Dec 2009 09:46:22 +0000 (11:46 +0200)]
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.

14 years agonl80211: Sync with wireless-testing.git linux/nl80211.h
Jouni Malinen [Thu, 24 Dec 2009 09:07:02 +0000 (11:07 +0200)]
nl80211: Sync with wireless-testing.git linux/nl80211.h

14 years agoRename EAP TLS variables to make server and peer code consistent
Jouni Malinen [Wed, 23 Dec 2009 22:16:58 +0000 (00:16 +0200)]
Rename EAP TLS variables to make server and peer code consistent

14 years agoConvert to use struct dl_list
Jouni Malinen [Wed, 23 Dec 2009 21:56:35 +0000 (23:56 +0200)]
Convert to use struct dl_list

14 years agoAdd developer documentation for WPA_TRACE
Jouni Malinen [Wed, 23 Dec 2009 21:35:33 +0000 (23:35 +0200)]
Add developer documentation for WPA_TRACE

14 years agoComment CONFIG_WPA_TRACE_BFD=y out by default
Jouni Malinen [Wed, 23 Dec 2009 21:20:11 +0000 (23:20 +0200)]
Comment CONFIG_WPA_TRACE_BFD=y out by default

14 years agoUpdate documentation for uni tests to use the new tests directory
Jouni Malinen [Wed, 23 Dec 2009 21:19:22 +0000 (23:19 +0200)]
Update documentation for uni tests to use the new tests directory

14 years agoAvoid NULL dereference on error path when default driver is used
Jouni Malinen [Wed, 23 Dec 2009 21:16:21 +0000 (23:16 +0200)]
Avoid NULL dereference on error path when default driver is used

14 years agotrace: Show eloop unregistered handler function name/file/line
Jouni Malinen [Mon, 21 Dec 2009 23:52:48 +0000 (01:52 +0200)]
trace: Show eloop unregistered handler function name/file/line

14 years agotrace: Filter out uninteresting functions from backtrace
Jouni Malinen [Mon, 21 Dec 2009 23:29:15 +0000 (01:29 +0200)]
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.

14 years agotrace: Add active reference tracking
Jouni Malinen [Mon, 21 Dec 2009 23:11:15 +0000 (01:11 +0200)]
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.

14 years agoCheck fread return value
Jouni Malinen [Mon, 21 Dec 2009 21:17:53 +0000 (23:17 +0200)]
Check fread return value

14 years agonl80211: Use couple more os_*() wrappers for allocation
Jouni Malinen [Mon, 21 Dec 2009 20:32:59 +0000 (22:32 +0200)]
nl80211: Use couple more os_*() wrappers for allocation

14 years agoFix memory leak in config freeing
Jouni Malinen [Mon, 21 Dec 2009 20:22:49 +0000 (22:22 +0200)]
Fix memory leak in config freeing

Both supported_rates and basic_rates arrays must be freed when freeing
hostapd configuration.

14 years agonl80211: Use os_* allocation wrappers to avoid WPA_TRACE issues
Jouni Malinen [Mon, 21 Dec 2009 20:21:10 +0000 (22:21 +0200)]
nl80211: Use os_* allocation wrappers to avoid WPA_TRACE issues

14 years agoCopy config_methods and device_type configuration for AP mode
Jouni Malinen [Mon, 21 Dec 2009 14:10:21 +0000 (16:10 +0200)]
Copy config_methods and device_type configuration for AP mode

14 years agoWPS: Make Config Methods configurable for wpa_supplicant
Jouni Malinen [Mon, 21 Dec 2009 13:59:25 +0000 (15:59 +0200)]
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.

14 years agoWPS: Prefer PSK format if Enrollee does not advertise Display
Jouni Malinen [Mon, 21 Dec 2009 10:58:02 +0000 (12:58 +0200)]
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.

14 years agoWPS: Add option for forcing Registrar to use PSK format in Credential
Jouni Malinen [Mon, 21 Dec 2009 10:46:19 +0000 (12:46 +0200)]
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.

14 years agoAP: Allow both WPA passphrase and PSK to be configured
Jouni Malinen [Mon, 21 Dec 2009 10:11:08 +0000 (12:11 +0200)]
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.

14 years agoAdd "keypad" to config methods for wpa_supplicant AP mode with WPS
Jouni Malinen [Mon, 21 Dec 2009 09:51:31 +0000 (11:51 +0200)]
Add "keypad" to config methods for wpa_supplicant AP mode with WPS

14 years agoDescribe tracing build options for developers
Jouni Malinen [Sun, 20 Dec 2009 21:41:06 +0000 (23:41 +0200)]
Describe tracing build options for developers

14 years agoAdd option libbfd support for tracing code
Jouni Malinen [Sun, 20 Dec 2009 21:35:06 +0000 (23:35 +0200)]
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.

14 years agoGnuTLS: Implement tls_connection_enable_workaround()
Jouni Malinen [Sun, 20 Dec 2009 20:08:54 +0000 (22:08 +0200)]
GnuTLS: Implement tls_connection_enable_workaround()

14 years agoGnuTLS: Add support for piggybacked Application Data
Jouni Malinen [Sun, 20 Dec 2009 20:07:59 +0000 (22:07 +0200)]
GnuTLS: Add support for piggybacked Application Data

14 years agoGnuTLS: Define empty tls_connection_set_session_ticket_cb()
Jouni Malinen [Sun, 20 Dec 2009 19:37:36 +0000 (21:37 +0200)]
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.

14 years agodbus: Fix build with "ctrl_iface_" prefix removed
Jouni Malinen [Sun, 20 Dec 2009 19:34:56 +0000 (21:34 +0200)]
dbus: Fix build with "ctrl_iface_" prefix removed

14 years agoUse wpabuf with tls_connection_ia_send_phase_finished()
Jouni Malinen [Sun, 20 Dec 2009 19:33:32 +0000 (21:33 +0200)]
Use wpabuf with tls_connection_ia_send_phase_finished()

14 years agodbus: Remove the confusing "ctrl_iface_" prefix from file names
Jouni Malinen [Sun, 20 Dec 2009 19:11:35 +0000 (21:11 +0200)]
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.

14 years agodbus: Move some of conditional WPS code into separate files
Jouni Malinen [Sun, 20 Dec 2009 19:04:40 +0000 (21:04 +0200)]
dbus: Move some of conditional WPS code into separate files