Notify the framework when an auxiliary event
occurs in wpa_supplicant.
Auxiliary events include:
- EAP_METHOD_SELECTED
- SSID_TEMP_DISABLED
- OPEN_SSL_FAILURE
Bug: 226140098
Bug: 165342942
Test: Manual test - trigger events and check that
onAuxilliaryEvent callback was called.
Change-Id: Ia1f137ddc1a4d91049668d6436652a0ad749c74f
diff --git a/src/eap_peer/eap.h b/src/eap_peer/eap.h
index a40d007..aae1a41 100644
--- a/src/eap_peer/eap.h
+++ b/src/eap_peer/eap.h
@@ -281,6 +281,20 @@
* @len: Length of anonymous identity in octets
*/
void (*set_anon_id)(void *ctx, const u8 *id, size_t len);
+
+ /**
+ * notify_eap_method_selected - Report that the EAP method was selected
+ * @ctx: eapol_ctx from eap_peer_sm_init() call
+ * @reason_string: Information to log about the event
+ */
+ void (*notify_eap_method_selected)(void *ctx, const char* reason_string);
+
+ /**
+ * notify_open_ssl_failure - Report that an OpenSSL failure occurred
+ * @ctx: eapol_ctx from eap_peer_sm_init() call
+ * @reason_string: Information to log about the event
+ */
+ void (*notify_open_ssl_failure)(void *ctx, const char* reason_string);
};
/**