mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Always use TLSv1.0 for record layer version in TLSv1.3
TLSv1.3 freezes the record layer version and ensures that it is always set to TLSv1.0. Some implementations check this. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2157)
This commit is contained in:
parent
710eb47fdd
commit
d24c6a34ce
@ -784,7 +784,7 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
|
||||
/* Clear our SSL3_RECORD structures */
|
||||
memset(wr, 0, sizeof wr);
|
||||
for (j = 0; j < numpipes; j++) {
|
||||
unsigned int version = s->version;
|
||||
unsigned int version = SSL_IS_TLS13(s) ? TLS1_VERSION : s->version;
|
||||
unsigned char *compressdata = NULL;
|
||||
size_t maxcomplen;
|
||||
unsigned int rectype;
|
||||
|
Loading…
Reference in New Issue
Block a user