3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:19:34 +01:00

unit: Add IWD_TLS_DEBUG environment variable handling

This commit is contained in:
Denis Kenzior 2019-02-22 14:48:44 -06:00
parent 7b3831515a
commit c638fd50c8

View File

@ -67,6 +67,11 @@ static const uint8_t *aa;
/* Supplicant Address */
static const uint8_t *spa;
static void tls_debug(const char *str, void *user_data)
{
l_info("%s", str);
}
struct test_handshake_state {
struct handshake_state super;
const uint8_t *tk;
@ -2934,6 +2939,9 @@ static void eapol_sm_test_tls(struct eapol_8021x_tls_test_state *s,
s->ready_cb, s->disconnect_cb, s);
assert(s->tls);
if (getenv("IWD_TLS_DEBUG"))
l_tls_set_debug(s->tls, tls_debug, NULL, NULL);
s->last_id = 1;
s->success = false;
s->tx_buf_len = 0;