Skip to content

Commit 23707db

Browse files
committed
fixup! fixup! curl ECH+QUIC fix
1 parent f18e9b2 commit 23707db

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ssl/statem/statem_clnt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,6 +1489,10 @@ __owur CON_FUNC_RETURN tls_construct_client_hello(SSL_CONNECTION *s, WPACKET *pk
14891489
#ifndef OPENSSL_NO_ECH
14901490
/* same session ID is used for inner/outer when doing ECH */
14911491
if (s->ext.ech.es != NULL) {
1492+
if (s->version != TLS1_3_VERSION) {
1493+
SSLfatal(s, SSL_AD_PROTOCOL_VERSION, SSL_R_UNSUPPORTED_SSL_VERSION);
1494+
return CON_FUNC_ERROR;
1495+
}
14921496
if ((s->options & SSL_OP_ENABLE_MIDDLEBOX_COMPAT) != 0)
14931497
sess_id_len = sizeof(s->tmp_session_id);
14941498
else

0 commit comments

Comments
 (0)