mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
EAP-TTLS peer: Handle Commitment Message for TLS 1.3
Recognize the explicitly defined Commitment Message per draft-ietf-emu-eap-tls13-13 at the conclusion of the EAP-TTLS with TLS 1.3. Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
This commit is contained in:
parent
65248148f0
commit
b17d6a1b3a
@ -1423,6 +1423,16 @@ start:
|
||||
goto start;
|
||||
}
|
||||
|
||||
/* draft-ietf-emu-eap-tls13-13 Section 2.5 */
|
||||
if (data->ssl.tls_v13 && wpabuf_len(in_decrypted) == 1 &&
|
||||
*wpabuf_head_u8(in_decrypted) == 0) {
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"EAP-TTLS: ACKing EAP-TLS Commitment Message");
|
||||
eap_peer_tls_reset_output(&data->ssl);
|
||||
wpabuf_free(in_decrypted);
|
||||
return 1;
|
||||
}
|
||||
|
||||
continue_req:
|
||||
data->phase2_start = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user