mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 09:29:22 +01:00
build: Use l_tls_prf_get_bytes instead of tls_prf_get_bytes
This commit is contained in:
parent
b27edce298
commit
467d3958b4
@ -518,7 +518,7 @@ static void eap_peap_tunnel_ready(const char *peer_identity, void *user_data)
|
||||
memcpy(random + 0, peap->tunnel->pending.client_random, 32);
|
||||
memcpy(random + 32, peap->tunnel->pending.server_random, 32);
|
||||
|
||||
tls_prf_get_bytes(peap->tunnel, L_CHECKSUM_SHA256, 32,
|
||||
l_tls_prf_get_bytes(peap->tunnel, L_CHECKSUM_SHA256, 32,
|
||||
peap->tunnel->pending.master_secret,
|
||||
sizeof(peap->tunnel->pending.master_secret),
|
||||
"client EAP encryption", random, 64,
|
||||
|
@ -150,12 +150,12 @@ static void eap_tls_ready_cb(const char *peer_identity, void *user_data)
|
||||
memcpy(seed + 0, tls->tls->pending.client_random, 32);
|
||||
memcpy(seed + 32, tls->tls->pending.server_random, 32);
|
||||
|
||||
tls_prf_get_bytes(tls->tls, L_CHECKSUM_SHA256, 32,
|
||||
l_tls_prf_get_bytes(tls->tls, L_CHECKSUM_SHA256, 32,
|
||||
tls->tls->pending.master_secret,
|
||||
sizeof(tls->tls->pending.master_secret),
|
||||
"client EAP encryption", seed, 64,
|
||||
msk_emsk, 128);
|
||||
tls_prf_get_bytes(tls->tls, L_CHECKSUM_SHA256, 32, NULL, 0,
|
||||
l_tls_prf_get_bytes(tls->tls, L_CHECKSUM_SHA256, 32, NULL, 0,
|
||||
"client EAP encryption", seed, 64,
|
||||
iv, 64);
|
||||
|
||||
|
@ -460,7 +460,7 @@ static void eap_ttls_phase2_chap_generate_challenge(struct l_tls *tunnel,
|
||||
memcpy(seed + 0, tunnel->pending.client_random, 32);
|
||||
memcpy(seed + 32, tunnel->pending.server_random, 32);
|
||||
|
||||
tls_prf_get_bytes(tunnel, L_CHECKSUM_SHA256, 32,
|
||||
l_tls_prf_get_bytes(tunnel, L_CHECKSUM_SHA256, 32,
|
||||
tunnel->pending.master_secret,
|
||||
sizeof(tunnel->pending.master_secret),
|
||||
"ttls challenge", seed, 64,
|
||||
@ -713,7 +713,7 @@ static void eap_ttls_ready_cb(const char *peer_identity, void *user_data)
|
||||
memcpy(seed + 0, ttls->tls->pending.client_random, 32);
|
||||
memcpy(seed + 32, ttls->tls->pending.server_random, 32);
|
||||
|
||||
tls_prf_get_bytes(ttls->tls, L_CHECKSUM_SHA256, 32,
|
||||
l_tls_prf_get_bytes(ttls->tls, L_CHECKSUM_SHA256, 32,
|
||||
ttls->tls->pending.master_secret,
|
||||
sizeof(ttls->tls->pending.master_secret),
|
||||
"ttls keying material", seed, 64,
|
||||
|
@ -2850,7 +2850,7 @@ static void eapol_sm_test_tls_test_ready(const char *peer_identity,
|
||||
memcpy(seed + 0, s->tls->pending.client_random, 32);
|
||||
memcpy(seed + 32, s->tls->pending.server_random, 32);
|
||||
|
||||
tls_prf_get_bytes(s->tls, L_CHECKSUM_SHA256, 32,
|
||||
l_tls_prf_get_bytes(s->tls, L_CHECKSUM_SHA256, 32,
|
||||
s->tls->pending.master_secret,
|
||||
sizeof(s->tls->pending.master_secret),
|
||||
"client EAP encryption", seed, 64, s->pmk, 32);
|
||||
@ -3172,7 +3172,7 @@ static void eapol_sm_test_eap_ttls_test_ready(const char *peer_identity,
|
||||
memcpy(seed + 0, s->tls.tls->pending.client_random, 32);
|
||||
memcpy(seed + 32, s->tls.tls->pending.server_random, 32);
|
||||
|
||||
tls_prf_get_bytes(s->tls.tls, L_CHECKSUM_SHA256, 32,
|
||||
l_tls_prf_get_bytes(s->tls.tls, L_CHECKSUM_SHA256, 32,
|
||||
s->tls.tls->pending.master_secret,
|
||||
sizeof(s->tls.tls->pending.master_secret),
|
||||
"ttls keying material", seed, 64,
|
||||
|
Loading…
Reference in New Issue
Block a user