commit 663cf9931ec0f4fe8c617c4a001747d477b74709
parent 8dc92768000ef6d5fb5f4adfe85a81f58e9e27c2
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date: Thu, 29 Nov 2018 14:41:42 -0800
eap-tls-common: Expose PRF
Diffstat:
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/eap-tls-common.c b/src/eap-tls-common.c
@@ -830,3 +830,14 @@ void eap_tls_common_set_phase2_faild(struct eap_state *eap)
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);
+}
diff --git a/src/eap-tls-common.h b/src/eap-tls-common.h
@@ -70,3 +70,8 @@ bool eap_tls_common_settings_load(struct eap_state *eap,
void *variant_data);
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);