aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssl-utils.h
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-08-22 11:01:59 +0200
committerPeter Wu <peter@lekensteyn.nl>2016-09-16 22:31:43 +0000
commitd32b116d408bfc64f74d7a98ad518e7cd0d4d688 (patch)
treeaa659a9c89142e7fa431a3f5c1e1be4f3251c490 /epan/dissectors/packet-ssl-utils.h
parent7319887c3169adba91d0f3fd1b5201354e246979 (diff)
TLS(1.3): Add (experimental) extension 'Draft version TLS 1.3'
Coming from https://github.com/tlswg/tls13-spec/wiki/Implementations#version-negotiation Bug: 12779 Change-Id: Ieca74eac737b5ba6c101b719e2e5e3aecf931279 Reviewed-on: https://code.wireshark.org/review/17226 Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'epan/dissectors/packet-ssl-utils.h')
-rw-r--r--epan/dissectors/packet-ssl-utils.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ssl-utils.h b/epan/dissectors/packet-ssl-utils.h
index 889571708a..5c84b42bca 100644
--- a/epan/dissectors/packet-ssl-utils.h
+++ b/epan/dissectors/packet-ssl-utils.h
@@ -151,6 +151,7 @@ typedef enum {
#define SSL_HND_HELLO_EXT_EXTENDED_MASTER_SECRET_TYPE 0x0017
#define SSL_HND_HELLO_EXT_SESSION_TICKET 0x0023
#define SSL_HND_HELLO_EXT_RENEG_INFO 0xff01
+#define SSL_HND_HELLO_EXT_DRAFT_VERSION_TLS13 0xff02
#define SSL_HND_HELLO_EXT_NPN 0x3374
#define SSL_HND_HELLO_EXT_CHANNEL_ID_OLD 0x754f
#define SSL_HND_HELLO_EXT_CHANNEL_ID 0x7550
@@ -715,6 +716,9 @@ typedef struct ssl_common_dissect {
gint hs_client_cert_vrfy_sig_len;
gint hs_client_cert_vrfy_sig;
+ /* TLS 1.3 */
+ gint hs_ext_draft_version_tls13;
+
/* do not forget to update SSL_COMMON_LIST_T and SSL_COMMON_HF_LIST! */
} hf;
struct {
@@ -838,7 +842,7 @@ ssl_common_dissect_t name = { \
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, \
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, \
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, \
- -1, -1, -1, -1, -1 \
+ -1, -1, -1, -1, -1, -1 \
}, \
/* ett */ { \
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, \
@@ -1357,6 +1361,11 @@ ssl_common_dissect_t name = { \
{ "Signature", prefix ".handshake.client_cert_vrfy.sig", \
FT_BYTES, BASE_NONE, NULL, 0x0, \
"CertificateVerify's signature", HFILL } \
+ }, \
+ { & name .hf.hs_ext_draft_version_tls13, \
+ { "Draft version of TLS 1.3", prefix ".extension.draft_version_tls13", \
+ FT_UINT16, BASE_DEC, NULL, 0x0, \
+ "Indicate the version of draft supported by client", HFILL } \
}
/* }}} */