Skip to content

Commit

Permalink
QUIC: Error when non-empty session_id in CH (fixes #29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmshort authored and wbl committed May 30, 2023
1 parent 6919737 commit a54d64f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ssl/statem/statem_srvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,16 @@ MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt)
goto err;
}
}
#ifndef OPENSSL_NO_QUIC
if (SSL_IS_QUIC(s)) {
/* Any other QUIC checks on ClientHello here */
if (clienthello->session_id_len > 0) {
SSLfatal(s, SSL_AD_ILLEGAL_PARAMETER, SSL_F_TLS_PROCESS_CLIENT_HELLO,
SSL_R_LENGTH_MISMATCH);
goto err;
}
}
#endif
}

if (!PACKET_copy_all(&compression, clienthello->compressions,
Expand Down

0 comments on commit a54d64f

Please sign in to comment.