mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
ChangeCipherSpec is not allowed in TLSv1.3
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2259)
This commit is contained in:
parent
26967dc3e7
commit
9799748974
@ -1223,7 +1223,8 @@ int ssl3_read_bytes(SSL *s, int type, int *recvd_type, unsigned char *buf,
|
||||
|
||||
if (type == SSL3_RECORD_get_type(rr)
|
||||
|| (SSL3_RECORD_get_type(rr) == SSL3_RT_CHANGE_CIPHER_SPEC
|
||||
&& type == SSL3_RT_HANDSHAKE && recvd_type != NULL)) {
|
||||
&& type == SSL3_RT_HANDSHAKE && recvd_type != NULL
|
||||
&& !SSL_IS_TLS13(s))) {
|
||||
/*
|
||||
* SSL3_RT_APPLICATION_DATA or
|
||||
* SSL3_RT_HANDSHAKE or
|
||||
|
Loading…
Reference in New Issue
Block a user