forked from espressif/esp-idf
EAP: Extend Session-Id derivation with TLS 1.3 to PEAP and EAP-TTLS
This newer Session-Id/Method-Id derivation is used with PEAP and EAP-TTLS when using TLS 1.3 per draft-ietf-emu-tls-eap-types-00, so do not limit this to only EAP-TLS. Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
This commit is contained in:
committed by
Sarvesh Bodakhe
parent
42e37285e5
commit
a5ee253d62
@@ -308,9 +308,9 @@ u8 * eap_peer_tls_derive_session_id(struct eap_sm *sm,
|
||||
struct tls_random keys;
|
||||
u8 *out;
|
||||
|
||||
if (eap_type == EAP_TYPE_TLS && data->tls_v13) {
|
||||
if (data->tls_v13) {
|
||||
u8 *id, *method_id;
|
||||
const u8 context[] = { EAP_TYPE_TLS };
|
||||
const u8 context[] = { eap_type };
|
||||
|
||||
/* Session-Id = <EAP-Type> || Method-Id
|
||||
* Method-Id = TLS-Exporter("EXPORTER_EAP_TLS_Method-Id",
|
||||
|
Reference in New Issue
Block a user