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>
This commit is contained in:
parent
e912e4bc92
commit
242b83a380
1 changed files with 9 additions and 0 deletions
|
@ -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,
|
static void eapol_test_cert_cb(void *ctx, int depth, const char *subject,
|
||||||
|
const char *altsubject[], int num_altsubject,
|
||||||
const char *cert_hash,
|
const char *cert_hash,
|
||||||
const struct wpabuf *cert)
|
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,
|
eapol_test_write_cert(e->server_cert_file,
|
||||||
subject, cert);
|
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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue