diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-07-24 21:14:30 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-08-12 13:50:45 +0000 |
commit | 6bdd072803b4f9964416c89a36be66f8643fd4c7 (patch) | |
tree | e4be0cc28beb0a6efd9afa556e2467edcc51651a /epan/dissectors/packet-quic.c | |
parent | c09538e48c6fe241cec0af29294f4f7eaf4a3b83 (diff) |
TLS: Add QUIC Transport Parameters
See https://tools.ietf.org/html/draft-ietf-quic-tls
Bug: 13881
Change-Id: Id8ae5cdc2f7232e5db28846e528ae378fc0ac58d
Reviewed-on: https://code.wireshark.org/review/22780
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-quic.c')
-rw-r--r-- | epan/dissectors/packet-quic.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/epan/dissectors/packet-quic.c b/epan/dissectors/packet-quic.c index 5a07796a7a..04929b7c5d 100644 --- a/epan/dissectors/packet-quic.c +++ b/epan/dissectors/packet-quic.c @@ -106,7 +106,7 @@ static gint ett_quic_ftflags = -1; static dissector_handle_t quic_handle; static dissector_handle_t ssl_handle; -static const value_string quic_version_vals[] = { +const value_string quic_version_vals[] = { { 0xff000004, "draft-04" }, { 0xff000005, "draft-05" }, { 0, NULL } @@ -237,6 +237,11 @@ static const value_string len_ack_block_vals[] = { #define QUIC_VERSION_NEGOTIATION_ERROR 0x80000009 #define QUIC_PROTOCOL_VIOLATION 0x8000000A +/* QUIC TLS Error */ +#define QUIC_TLS_HANDSHAKE_FAILED 0xC000001C +#define QUIC_TLS_FATAL_ALERT_GENERATED 0xC000001D +#define QUIC_TLS_FATAL_ALERT_RECEIVED 0xC000001E + static const value_string quic_error_code_vals[] = { { QUIC_NO_ERROR, "NO_ERROR (An endpoint uses this with CONNECTION_CLOSE to signal that the connection is being closed abruptly in the absence of any error)" }, { QUIC_INTERNAL_ERROR, "INTERNAL_ERROR (The endpoint encountered an internal error and cannot continue with the connection)" }, @@ -249,6 +254,9 @@ static const value_string quic_error_code_vals[] = { { QUIC_TRANSPORT_PARAMETER_ERROR, "TRANSPORT_PARAMETER_ERROR (An endpoint received transport parameters that were badly formatted)" }, { QUIC_VERSION_NEGOTIATION_ERROR, "VERSION_NEGOTIATION_ERROR (An endpoint received transport parameters that contained version negotiation parameters that disagreed with the version negotiation that it performed)" }, { QUIC_PROTOCOL_VIOLATION, "PROTOCOL_VIOLATION (An endpoint detected an error with protocol compliance that was not covered by more specific error codes)" }, + { QUIC_TLS_HANDSHAKE_FAILED, "TLS_HANDSHAKE_FAILED (The TLS handshake failed)" }, + { QUIC_TLS_FATAL_ALERT_GENERATED, "TLS_FATAL_ALERT_GENERATED (A TLS fatal alert was sent, causing the TLS connection to end prematurel)" }, + { QUIC_TLS_FATAL_ALERT_RECEIVED, "TLS_FATAL_ALERT_RECEIVED (A TLS fatal alert was received, causing the TLS connection to end prematurely)" }, { 0, NULL } }; static value_string_ext quic_error_code_vals_ext = VALUE_STRING_EXT_INIT(quic_error_code_vals); |