From c7a39ba4e17e2ce6e4710acf2e1aa029bb4cf2ca Mon Sep 17 00:00:00 2001 From: Chris Hessing Date: Tue, 23 Apr 2013 16:46:02 +0300 Subject: [PATCH] Provide TLS alerts to CLI/UI over control interface Harmonize EAP status events over control interface to provide same functionality as existing D-Bus callback. Signed-hostap: Chris Hessing --- src/common/wpa_ctrl.h | 2 ++ wpa_supplicant/notify.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index ce1c3a6f8..c4e31f712 100644 --- a/src/common/wpa_ctrl.h +++ b/src/common/wpa_ctrl.h @@ -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) */ diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c index 9251f62e2..ca6f7e741 100644 --- a/wpa_supplicant/notify.c +++ b/wpa_supplicant/notify.c @@ -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); }