Fix HelloVerifyRequest version handling

This commit is contained in:
Manuel Pégourié-Gonnard 2014-08-09 17:00:46 +02:00 committed by Paul Bakker
parent 4ba6ab6d0d
commit b35fe5638a
2 changed files with 10 additions and 4 deletions

View file

@ -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;