3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-28 09:54:09 +01:00
iwd/src
Andrew Zaborowski 2382dc7ffa network: Validate 8021x settings and request passwords
Use eap_check_settings directly from network.c before we start the
connection attempt at netdev.c level, to obtain all of the required
passwords/passphrases through the agent.  This is in network.c because
here we can decide the policies for whether to call the agent in
autoconnect or only if we had a request from the user, also whether we
want to save any of that for later re-use (either password data or
kernel-side key serial), etc.

In this patch we save the credentials for the lifetime of the network
object in memory, and we skip the network if it requires any passphrases
we don't have while in autoconnect, same as with PSK networks where the
PSK isn't given in the settings.  Note that NetworkManager does pop up
the password window for PSK or EAP passwords even in autoconnect.

If EAP needs multiple passwords we will call the agent sequentially for
each.
2018-04-19 14:05:20 -05:00
..
agent.c agent: Add new request types 2018-04-19 11:49:41 -05:00
agent.h agent: Add new request types 2018-04-19 11:49:41 -05:00
ap.c ap: Drop unneeded ap_deauth_cb cleanup step 2017-10-12 10:55:02 -05:00
ap.h ap: Add AP mode api 2017-09-12 14:29:34 -05:00
backtrace.c backtrace: Try to find absolute executable path 2017-03-16 15:17:41 -05:00
backtrace.h backtrace: Try to find absolute executable path 2017-03-16 15:17:41 -05:00
common.c common: Add security_from_str 2016-06-08 11:08:10 -05:00
common.h common: Add security_from_str 2016-06-08 11:08:10 -05:00
crypto.c crypto: Use l_pkcs5_pbkdf2 in place of local pbkdf2_sha1 2017-10-09 14:34:31 -05:00
crypto.h eapol: Tighten up GTK/IGTK KDE validation 2017-10-19 16:47:35 -05:00
dbus.c dbus: Add NotConfigured dbus exception 2017-10-26 16:00:21 -05:00
dbus.h dbus: Add NotConfigured dbus exception 2017-10-26 16:00:21 -05:00
device.c device: Handle disconnect by AP and by SME events same way 2018-04-19 10:36:18 -05:00
device.h device: Add temporary Start / StopAccessPoint Dbus methods 2017-09-22 12:50:12 -05:00
eap-aka.c eap-aka: Implement .check_settings 2018-04-19 13:14:25 -05:00
eap-gtc.c eap-gtc: Implement .check_settings 2018-04-19 13:14:37 -05:00
eap-md5.c eap-md5: Implement .check_settings 2018-04-19 13:00:44 -05:00
eap-mschapv2.c eap-mschapv2: Implement .check_settings 2018-04-19 13:01:58 -05:00
eap-mschapv2.h eap-mschap: Add crypto functions for mschapv2 2016-12-14 22:46:18 -06:00
eap-peap.c eap-peap: Implement .check_settings 2018-04-19 13:23:03 -05:00
eap-sim.c eap-sim: Implement .check_settings 2018-04-19 13:13:58 -05:00
eap-tls.c eap-tls: Implement .check_settings 2018-04-19 13:11:39 -05:00
eap-ttls.c eap-ttls: Implement .check_settings 2018-04-19 13:13:07 -05:00
eap-wsc.c eap: Drop method's .probe, rename .remove 2017-09-06 14:43:11 -05:00
eap-wsc.h eap-wsc: Send credential obtained events 2016-09-13 13:32:47 -05:00
eap.c eap: Validate settings, report passwords needed 2018-04-19 13:00:12 -05:00
eap.h eap: Validate settings, report passwords needed 2018-04-19 13:00:12 -05:00
eapol.c eapol: process config setting for handshake timeout 2018-04-02 13:54:25 -05:00
eapol.h eapol: process config setting for handshake timeout 2018-04-02 13:54:25 -05:00
ftutil.c netdev: Handle the FT Authentication Response message 2017-01-12 10:33:40 -06:00
ftutil.h netdev: Handle the FT Authentication Response message 2017-01-12 10:33:40 -06:00
genbuiltin make: plugin system for build 2017-11-28 13:20:33 -06:00
handshake.c eapol: In FT-EAP use all 64 bytes of the MSK 2018-03-15 11:40:17 -05:00
handshake.h eapol: In FT-EAP use all 64 bytes of the MSK 2018-03-15 11:40:17 -05:00
ie.c ie: Allow building an empty IE sequence in ie_tlv_builder_finalize 2017-09-22 11:59:06 -05:00
ie.h ie: Add IE tags new in 802.11-2016 2017-09-22 10:10:37 -05:00
iwd-dbus.conf dbus: Add hwsim interface to DBus policy file 2017-03-09 11:45:41 -06:00
iwd.h dbus: Use the shutdown procedure instead of l_main_quit 2017-05-04 10:50:29 -05:00
iwd.service.in build: Add support for installing systemd service unit 2018-02-10 18:42:43 +01:00
knownnetworks.c dbus: Switch to using org.freedesktop.DBus.Properties 2016-09-21 16:46:34 -05:00
knownnetworks.h knownnetworks: Implement KnownNetworks interface 2016-06-21 11:41:37 -05:00
main.c main: set eapol config 2018-04-02 13:54:25 -05:00
mpdu.c mpdu: Refactor Authentication frame validation 2017-09-22 12:18:06 -05:00
mpdu.h mpdu: Refactor Authentication frame validation 2017-09-22 12:18:06 -05:00
netdev.c netdev: Avoid calling netdev_connect_ok twice in FT 2018-02-26 09:59:58 -06:00
netdev.h netdev: Refactor netdev_register_frame 2017-09-06 14:29:46 -05:00
network.c network: Validate 8021x settings and request passwords 2018-04-19 14:05:20 -05:00
network.h network: Validate 8021x settings and request passwords 2018-04-19 14:05:20 -05:00
plugin.c plugins: module to load ell plugins 2017-11-28 13:30:06 -06:00
plugin.h plugins: module to load ell plugins 2017-11-28 13:30:06 -06:00
rfkill.c rfkill: Fix wiphy ID lookup 2016-07-20 15:29:39 -05:00
rfkill.h Add rfkill enable/disable and watch support 2016-07-07 13:21:08 -05:00
scan.c scan: Add new Operating Classes from 802.11-2016 2018-02-13 11:59:42 -06:00
scan.h scan: Add error code argument to scan results callback 2017-03-26 20:26:53 -05:00
simauth.c simauth: remove unregister API 2017-12-14 16:22:09 -06:00
simauth.h simauth: remove unregister API 2017-12-14 16:22:09 -06:00
simutil.c simutil: removed milenage algorithm from simutil 2017-12-13 17:13:29 -06:00
simutil.h simutil: fixup adding const to data pointer 2017-10-18 11:18:26 -05:00
storage.c storage: provide proper feedback on failures 2017-10-31 17:45:47 -05:00
storage.h storage: Return const char * 2016-06-10 09:59:59 -05:00
util.c util: Add address type utils 2017-09-22 10:08:04 -05:00
util.h util: added macros to print mac addresses 2018-02-01 10:12:09 -06:00
watchlist.c watchlist: Fix memory leak 2017-10-18 19:29:24 -05:00
watchlist.h watchlist: added macro for notifying with no args 2017-11-16 14:10:47 -06:00
wiphy.c eapol: Check for "No Group Traffic" group cipher suite 2017-10-23 11:14:40 -05:00
wiphy.h wiphy: Add wiphy_get_ext_feature 2017-05-19 10:01:53 -05:00
wsc.c device: Add temporary Start / StopAccessPoint Dbus methods 2017-09-22 12:50:12 -05:00
wsc.h wsc: Squash wsc_sm structure 2016-09-13 14:53:30 -05:00
wscutil.c wscutil: Fix invalid type conversion 2017-08-30 16:58:14 -05:00
wscutil.h wscutil: Add wsc_pin_generate 2017-02-17 12:27:13 -06:00