forked from espressif/esp-idf
EAP-TLS: Derive Session-Id using TLS-Exporter when TLS v1.3 is used
This updates Session-Id derivation with TLS v1.3 per draft-ietf-emu-eap-tls13-00. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
committed by
Sarvesh Bodakhe
parent
a2336b74f9
commit
ed8452d53f
@@ -303,6 +303,13 @@ u8 * eap_peer_tls_derive_session_id(struct eap_sm *sm,
|
|||||||
struct tls_random keys;
|
struct tls_random keys;
|
||||||
u8 *out;
|
u8 *out;
|
||||||
|
|
||||||
|
if (eap_type == EAP_TYPE_TLS && data->tls_v13) {
|
||||||
|
*len = 64;
|
||||||
|
return eap_peer_tls_derive_key(sm, data,
|
||||||
|
"EXPORTER_EAP_TLS_Session-Id",
|
||||||
|
64);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TLS library did not support session ID generation,
|
* TLS library did not support session ID generation,
|
||||||
* so get the needed TLS session parameters
|
* so get the needed TLS session parameters
|
||||||
|
Reference in New Issue
Block a user