mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-29 05:39:24 +01:00
unit: Add IWD_TLS_DEBUG environment variable handling
This commit is contained in:
parent
7b3831515a
commit
c638fd50c8
@ -67,6 +67,11 @@ static const uint8_t *aa;
|
|||||||
/* Supplicant Address */
|
/* Supplicant Address */
|
||||||
static const uint8_t *spa;
|
static const uint8_t *spa;
|
||||||
|
|
||||||
|
static void tls_debug(const char *str, void *user_data)
|
||||||
|
{
|
||||||
|
l_info("%s", str);
|
||||||
|
}
|
||||||
|
|
||||||
struct test_handshake_state {
|
struct test_handshake_state {
|
||||||
struct handshake_state super;
|
struct handshake_state super;
|
||||||
const uint8_t *tk;
|
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);
|
s->ready_cb, s->disconnect_cb, s);
|
||||||
assert(s->tls);
|
assert(s->tls);
|
||||||
|
|
||||||
|
if (getenv("IWD_TLS_DEBUG"))
|
||||||
|
l_tls_set_debug(s->tls, tls_debug, NULL, NULL);
|
||||||
|
|
||||||
s->last_id = 1;
|
s->last_id = 1;
|
||||||
s->success = false;
|
s->success = false;
|
||||||
s->tx_buf_len = 0;
|
s->tx_buf_len = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user