path: root/src/eapol_supp/eapol_supp_sm.h
diff options
authorMichael Chang <mchang@novell.com>2011-07-05 09:22:32 (GMT)
committerJouni Malinen <j@w1.fi>2011-07-05 09:22:32 (GMT)
commitade74830b45466abb41b8e8dbc2f595d8bacb793 (patch)
treed89cde1acc14bf9c26f26c53246d27db2c642365 /src/eapol_supp/eapol_supp_sm.h
parenta3e685a04bbe0d97233d46f2a9473c742a3c6bec (diff)
Add dbus signal for information about server certification
In general, this patch attemps to extend commit 00468b4650998144f794762206c695c962c54734 with dbus support. This can be used by dbus client to implement subject match text entry with preset value probed from server. This preset value, if user accepts it, is remembered and passed to subject_match config for any future authentication. Signed-off-by: Michael Chang <mchang@novell.com>
Diffstat (limited to 'src/eapol_supp/eapol_supp_sm.h')
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eapol_supp/eapol_supp_sm.h b/src/eapol_supp/eapol_supp_sm.h
index 1bdf8cd..3ea7e79 100644
--- a/src/eapol_supp/eapol_supp_sm.h
+++ b/src/eapol_supp/eapol_supp_sm.h
@@ -220,6 +220,17 @@ struct eapol_ctx {
* @authorized: Whether the supplicant port is now in authorized state
void (*port_cb)(void *ctx, int authorized);
+ /**
+ * cert_cb - Notification of a peer certificate
+ * @ctx: Callback context (ctx)
+ * @depth: Depth in certificate chain (0 = server)
+ * @subject: Subject of the peer certificate
+ * @cert_hash: SHA-256 hash of the certificate
+ * @cert: Peer certificate
+ */
+ void (*cert_cb)(void *ctx, int depth, const char *subject,
+ const char *cert_hash, const struct wpabuf *cert);