mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Fix HelloVerifyRequest version handling
This commit is contained in:
committed by
Paul Bakker
parent
4ba6ab6d0d
commit
b35fe5638a
@ -1981,8 +1981,9 @@ static int ssl_write_hello_verify_request( ssl_context *ssl )
|
||||
* } HelloVerifyRequest;
|
||||
*/
|
||||
|
||||
/* For now, use fixed version = DTLS 1.0 */
|
||||
ssl_write_version( SSL_MAJOR_VERSION_3, SSL_MINOR_VERSION_1,
|
||||
/* The RFC is not clear on this point, but sending the actual negotiated
|
||||
* version looks like the most interoperable thing to do. */
|
||||
ssl_write_version( ssl->major_ver, ssl->minor_ver,
|
||||
ssl->transport, p );
|
||||
SSL_DEBUG_BUF( 3, "server version", (unsigned char *) p, 2 );
|
||||
p += 2;
|
||||
|
Reference in New Issue
Block a user