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 <chris.hessing@cloudpath.net>
This commit is contained in:
parent
2a07a276ec
commit
c7a39ba4e1
2 changed files with 5 additions and 0 deletions
|
@ -44,6 +44,8 @@ extern "C" {
|
||||||
#define WPA_EVENT_EAP_PEER_CERT "CTRL-EVENT-EAP-PEER-CERT "
|
#define WPA_EVENT_EAP_PEER_CERT "CTRL-EVENT-EAP-PEER-CERT "
|
||||||
/** EAP TLS certificate chain validation error */
|
/** EAP TLS certificate chain validation error */
|
||||||
#define WPA_EVENT_EAP_TLS_CERT_ERROR "CTRL-EVENT-EAP-TLS-CERT-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 */
|
/** EAP authentication completed successfully */
|
||||||
#define WPA_EVENT_EAP_SUCCESS "CTRL-EVENT-EAP-SUCCESS "
|
#define WPA_EVENT_EAP_SUCCESS "CTRL-EVENT-EAP-SUCCESS "
|
||||||
/** EAP authentication failed (EAP-Failure received) */
|
/** EAP authentication failed (EAP-Failure received) */
|
||||||
|
|
|
@ -627,4 +627,7 @@ void wpas_notify_eap_status(struct wpa_supplicant *wpa_s, const char *status,
|
||||||
const char *parameter)
|
const char *parameter)
|
||||||
{
|
{
|
||||||
wpas_dbus_signal_eap_status(wpa_s, status, 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue