mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
eap-tls-common: Expose PRF
This commit is contained in:
parent
8dc9276800
commit
663cf9931e
@ -830,3 +830,14 @@ void eap_tls_common_set_phase2_faild(struct eap_state *eap)
|
|||||||
|
|
||||||
eap_tls->phase2_failed = true;
|
eap_tls->phase2_failed = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool eap_tls_common_tunnel_prf_get_bytes(struct eap_state *eap,
|
||||||
|
bool use_master_secret,
|
||||||
|
const char *label, uint8_t *buf,
|
||||||
|
size_t buf_len)
|
||||||
|
{
|
||||||
|
struct eap_tls_state *eap_tls = eap_get_data(eap);
|
||||||
|
|
||||||
|
return l_tls_prf_get_bytes(eap_tls->tunnel, use_master_secret, label,
|
||||||
|
buf, buf_len);
|
||||||
|
}
|
||||||
|
@ -70,3 +70,8 @@ bool eap_tls_common_settings_load(struct eap_state *eap,
|
|||||||
void *variant_data);
|
void *variant_data);
|
||||||
|
|
||||||
void eap_tls_common_send_empty_response(struct eap_state *eap);
|
void eap_tls_common_send_empty_response(struct eap_state *eap);
|
||||||
|
|
||||||
|
bool eap_tls_common_tunnel_prf_get_bytes(struct eap_state *eap,
|
||||||
|
bool use_master_secret,
|
||||||
|
const char *label, uint8_t *buf,
|
||||||
|
size_t len);
|
||||||
|
Loading…
Reference in New Issue
Block a user