diff options
author | Jouni Malinen <jouni@codeaurora.org> | 2019-08-16 12:51:40 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2019-08-16 13:40:31 (GMT) |
commit | a647a0ad75fd2650ce1be300327f7ea8c9ff3a1e (patch) | |
tree | c146a60c9c2701731bbb042cd49793cae8287665 /wpa_supplicant | |
parent | 346d10cf824728d8f35f9bf78f5b0d7b73ef6222 (diff) | |
download | hostap-a647a0ad75fd2650ce1be300327f7ea8c9ff3a1e.zip hostap-a647a0ad75fd2650ce1be300327f7ea8c9ff3a1e.tar.gz hostap-a647a0ad75fd2650ce1be300327f7ea8c9ff3a1e.tar.bz2 |
Extend server certificate TOD policy reporting to include TOD-TOFU
The previously used single TOD policy was split into two policies:
TOD-STRICT and TOD-TOFU. Report these separately in the
CTRL-EVENT-EAP-PEER-CERT events (tod=1 for TOD-STRICT and tod=2 for
TOD-TOFU).
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant')
-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 e41d7c4..0ba1e14 100644 --- a/wpa_supplicant/notify.c +++ b/wpa_supplicant/notify.c @@ -794,10 +794,11 @@ void wpas_notify_certification(struct wpa_supplicant *wpa_s, int i; wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_CERT - "depth=%d subject='%s'%s%s%s", + "depth=%d subject='%s'%s%s%s%s", cert->depth, cert->subject, cert_hash ? " hash=" : "", cert_hash ? cert_hash : "", - cert->tod ? " tod=1" : ""); + cert->tod == 2 ? " tod=2" : "", + cert->tod == 1 ? " tod=1" : ""); if (cert->cert) { char *cert_hex; |