3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

eap-tls: Dump server certificate when IWD_TLS_DEBUG set

This commit is contained in:
Andrew Zaborowski 2020-12-24 00:22:14 +01:00 committed by Denis Kenzior
parent d3606cd255
commit 047b0e71a1

View File

@ -583,9 +583,12 @@ static bool eap_tls_tunnel_init(struct eap_state *eap)
return false;
}
if (getenv("IWD_TLS_DEBUG"))
if (getenv("IWD_TLS_DEBUG")) {
l_tls_set_debug(eap_tls->tunnel, eap_tls_tunnel_debug, eap,
NULL);
l_tls_set_cert_dump_path(eap_tls->tunnel,
"/tmp/iwd-tls-debug-server-cert.pem");
}
if (eap_tls->client_cert || eap_tls->client_key) {
if (!l_tls_set_auth_data(eap_tls->tunnel, eap_tls->client_cert,