TLS(1.3): with draft-16, Server Hello return draft release (0x7fxx)

set server_version to TLS 1.3

Change-Id: Id4d3d5d21ae996f447d826e98c0cf60880e7c0ce
Reviewed-on: https://code.wireshark.org/review/18171
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Alexis La Goutte 2016-10-12 22:30:23 +02:00 committed by Peter Wu
parent f404ac064f
commit b36382a9ce
1 changed files with 3 additions and 0 deletions

View File

@ -6264,6 +6264,9 @@ ssl_dissect_hnd_srv_hello(ssl_common_dissect_t *hf, tvbuff_t *tvb,
/* This version is always better than the guess at the Record Layer */
server_version = tvb_get_ntohs(tvb, offset);
if((server_version & 0xFF00) == 0x7f00) { /* if server_version start with 0x7f, it is (and force) TLS 1.3 */
server_version = TLSV1DOT3_VERSION;
}
ssl_try_set_version(session, ssl, SSL_ID_HANDSHAKE, SSL_HND_SERVER_HELLO,
is_dtls, server_version);
col_set_str(pinfo->cinfo, COL_PROTOCOL,