]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Provide TLS alerts to CLI/UI over control interface
authorChris Hessing <chris.hessing@cloudpath.net>
Tue, 23 Apr 2013 13:46:02 +0000 (16:46 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 23 Apr 2013 13:46:02 +0000 (16:46 +0300)
Harmonize EAP status events over control interface to provide same
functionality as existing D-Bus callback.

Signed-hostap: Chris Hessing <chris.hessing@cloudpath.net>

src/common/wpa_ctrl.h
wpa_supplicant/notify.c

index ce1c3a6f8d54bdac19cb2a2bd9643470ce8d2b8b..c4e31f71250c5d62baf9cbe54347223654e3a3fe 100644 (file)
@@ -44,6 +44,8 @@ extern "C" {
 #define WPA_EVENT_EAP_PEER_CERT "CTRL-EVENT-EAP-PEER-CERT "
 /** EAP TLS certificate chain validation error */
 #define WPA_EVENT_EAP_TLS_CERT_ERROR "CTRL-EVENT-EAP-TLS-CERT-ERROR "
+/** EAP status */
+#define WPA_EVENT_EAP_STATUS "CTRL-EVENT-EAP-STATUS "
 /** EAP authentication completed successfully */
 #define WPA_EVENT_EAP_SUCCESS "CTRL-EVENT-EAP-SUCCESS "
 /** EAP authentication failed (EAP-Failure received) */
index 9251f62e27eae50c889b41a85ad1378b118bff4b..ca6f7e741154ca3b34b21aaeb293fbaaf388c8c7 100644 (file)
@@ -627,4 +627,7 @@ void wpas_notify_eap_status(struct wpa_supplicant *wpa_s, const char *status,
                            const char *parameter)
 {
        wpas_dbus_signal_eap_status(wpa_s, status, parameter);
+       wpa_msg_ctrl(wpa_s, MSG_INFO, WPA_EVENT_EAP_STATUS
+                    "status='%s' parameter='%s'",
+                    status, parameter);
 }