mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
Never send a session id in TLS1.3
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2259)
This commit is contained in:
parent
e7a28df70b
commit
f05bcf0f45
@ -1003,7 +1003,7 @@ int tls_construct_client_hello(SSL *s, WPACKET *pkt)
|
||||
}
|
||||
|
||||
/* Session ID */
|
||||
if (s->new_session)
|
||||
if (s->new_session || s->session->ssl_version == TLS1_3_VERSION)
|
||||
sess_id_len = 0;
|
||||
else
|
||||
sess_id_len = s->session->session_id_length;
|
||||
|
Loading…
Reference in New Issue
Block a user