aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/eapol_test.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-01-17 00:24:00 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-17 00:24:00 (GMT)
commit242b83a380c997ef3aa7882bd923c09a29b93465 (patch)
tree6183eeccc1bb8fceda1c95088bc76680a703e0ba /wpa_supplicant/eapol_test.c
parente912e4bc923ffd261e6673104e4f1399bee9ed02 (diff)
downloadhostap-242b83a380c997ef3aa7882bd923c09a29b93465.zip
hostap-242b83a380c997ef3aa7882bd923c09a29b93465.tar.gz
hostap-242b83a380c997ef3aa7882bd923c09a29b93465.tar.bz2
eapol_test: Fix cert_cb() function arguments
altsubject[] was added here, but the callback implementation in eapol_test.c was forgotten from the commit. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/eapol_test.c')
-rw-r--r--wpa_supplicant/eapol_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/eapol_test.c b/wpa_supplicant/eapol_test.c
index aa9ab50..9b7af30 100644
--- a/wpa_supplicant/eapol_test.c
+++ b/wpa_supplicant/eapol_test.c
@@ -480,6 +480,7 @@ static void eapol_test_eap_param_needed(void *ctx, enum wpa_ctrl_req_type field,
static void eapol_test_cert_cb(void *ctx, int depth, const char *subject,
+ const char *altsubject[], int num_altsubject,
const char *cert_hash,
const struct wpabuf *cert)
{
@@ -509,6 +510,14 @@ static void eapol_test_cert_cb(void *ctx, int depth, const char *subject,
eapol_test_write_cert(e->server_cert_file,
subject, cert);
}
+
+ if (altsubject) {
+ int i;
+
+ for (i = 0; i < num_altsubject; i++)
+ wpa_msg(e->wpa_s, MSG_INFO, WPA_EVENT_EAP_PEER_ALT
+ "depth=%d %s", depth, altsubject[i]);
+ }
}