aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_peer/eap_tls.c
diff options
context:
space:
mode:
authorErvin Oro <ervin.oro@aalto.fi>2019-03-11 11:21:36 (GMT)
committerJouni Malinen <j@w1.fi>2019-03-16 16:52:09 (GMT)
commita916ff5cd819ad4410374f421eb4f04fa683604a (patch)
tree021950449e1f6a5322a4d17df699fff86676f09a /src/eap_peer/eap_tls.c
parentfab49f6145f44760e888b3844a9fff9440a85b27 (diff)
downloadhostap-a916ff5cd819ad4410374f421eb4f04fa683604a.zip
hostap-a916ff5cd819ad4410374f421eb4f04fa683604a.tar.gz
hostap-a916ff5cd819ad4410374f421eb4f04fa683604a.tar.bz2
Add support for an optional context parameter to TLS exporter
Allow an additional context value to be passed to TLS exporter as specified in RFC 5705 section 4. This does not yet implement it for the internal TLS implementation. However, as currently nothing uses context yet, this will not break anything right now. WolfSSL maintainers also stated that they are not going to add context support yet, but would look into it if/when this is required by a published draft or a standard. Signed-off-by: Ervin Oro <ervin.oro@aalto.fi>
Diffstat (limited to 'src/eap_peer/eap_tls.c')
-rw-r--r--src/eap_peer/eap_tls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eap_peer/eap_tls.c b/src/eap_peer/eap_tls.c
index cb74702..ffea9d2 100644
--- a/src/eap_peer/eap_tls.c
+++ b/src/eap_peer/eap_tls.c
@@ -198,6 +198,7 @@ static void eap_tls_success(struct eap_sm *sm, struct eap_tls_data *data,
eap_tls_free_key(data);
data->key_data = eap_peer_tls_derive_key(sm, &data->ssl, label,
+ NULL, 0,
EAP_TLS_KEY_LEN +
EAP_EMSK_LEN);
if (data->key_data) {