diff options
author | Jouni Malinen <jouni@codeaurora.org> | 2019-06-11 01:39:57 (GMT) |
---|---|---|
committer | Jouni Malinen <jouni@codeaurora.org> | 2019-06-14 20:10:50 (GMT) |
commit | 21f1a1e66c390d55e7bc7dd62bd6a378b11e0e22 (patch) | |
tree | 24c8156b756d6fa3c120b89ec42ff51298b3cadd /wpa_supplicant/notify.c | |
parent | bc0634da4a3ef468f3142fb39ebdabb08566f411 (diff) | |
download | hostap-21f1a1e66c390d55e7bc7dd62bd6a378b11e0e22.zip hostap-21f1a1e66c390d55e7bc7dd62bd6a378b11e0e22.tar.gz hostap-21f1a1e66c390d55e7bc7dd62bd6a378b11e0e22.tar.bz2 |
Report TOD policy in peer certificate events
Add tod=1 to CTRL-EVENT-EAP-PEER-CERT events if the peer certificate
includes the TOD policy in the X.509v3 Certificate Policies extension.
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant/notify.c')
-rw-r--r-- | wpa_supplicant/notify.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c index f592566..dd627d0 100644 --- a/wpa_supplicant/notify.c +++ b/wpa_supplicant/notify.c @@ -792,9 +792,10 @@ void wpas_notify_certification(struct wpa_supplicant *wpa_s, const char *cert_hash) { wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_CERT - "depth=%d subject='%s'%s%s", + "depth=%d subject='%s'%s%s%s", cert->depth, cert->subject, cert_hash ? " hash=" : "", - cert_hash ? cert_hash : ""); + cert_hash ? cert_hash : "", + cert->tod ? " tod=1" : ""); if (cert->cert) { char *cert_hex; |