diff options
author | Matt Caswell <matt@openssl.org> | 2018-02-15 14:29:45 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-02-19 14:02:33 +0000 |
commit | 5f7470df83cb179f793026a5950c1446866c9cab (patch) | |
tree | b9029201a8ee8718a14e6dd82aaed95e4eb82c58 /test | |
parent | b761ff4e77f74f91d8694964039af24ead3c2467 (diff) |
The record version for ClientHello2 should be TLS1.2
According to TLSv1.3 draft-24 the record version for ClientHello2 should
be TLS1.2, and not TLS1.0 as it is now.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5377)
Diffstat (limited to 'test')
-rw-r--r-- | test/tls13ccstest.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/tls13ccstest.c b/test/tls13ccstest.c index c51c2cec5f..db9bfe5a57 100644 --- a/test/tls13ccstest.c +++ b/test/tls13ccstest.c @@ -118,7 +118,7 @@ static int watchccs_write(BIO *bio, const char *in, int inl) return 0; if (msgtype == SSL3_MT_CLIENT_HELLO) { chseen++; - expectedrecvers = TLS1_VERSION; + /* * Skip legacy_version (2 bytes) and Random (32 bytes) to read * session_id. @@ -128,6 +128,8 @@ static int watchccs_write(BIO *bio, const char *in, int inl) return 0; if (chseen == 1) { + expectedrecvers = TLS1_VERSION; + /* Save the session id for later */ chsessidlen = PACKET_remaining(&sessionid); if (!PACKET_copy_bytes(&sessionid, chsessid, chsessidlen)) |