]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-TTLS peer: Handle Commitment Message for TLS 1.3
authorAlexander Clouter <alex@digriz.org.uk>
Fri, 16 Oct 2020 08:49:38 +0000 (09:49 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 20 Feb 2021 15:47:41 +0000 (17:47 +0200)
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>
src/eap_peer/eap_ttls.c

index b8e33217b735d716bb6abcbaa9ff40e2eef66419..c4019154d9556f5b9a0056eefe561abba592cfa0 100644 (file)
@@ -1473,6 +1473,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;