aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2018-01-15 08:16:18 +0100
committerAnders Broman <a.broman58@gmail.com>2018-01-15 07:53:17 +0000
commite2ab8151b6255dce8f3e841f9b17e487f4ba05d2 (patch)
tree8afbe8ebef0c36e33122e164dbfaf4389700eeef
parent39e612dee8ab97c1361f174ffdb3608189be0631 (diff)
QUIC(TLS): Add new error code from draft-07
Bug: 13881 Change-Id: I7ef7fd2081d74991219e40f695635e4c00d20365 Reviewed-on: https://code.wireshark.org/review/25320 Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-quic.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-quic.c b/epan/dissectors/packet-quic.c
index 0d3ba73309..c9f5940f8a 100644
--- a/epan/dissectors/packet-quic.c
+++ b/epan/dissectors/packet-quic.c
@@ -348,6 +348,10 @@ static value_string_ext quic_old_error_code_vals_ext = VALUE_STRING_EXT_INIT(qui
#define QUIC_VERSION_NEGOTIATION_ERROR 0x0009
#define QUIC_PROTOCOL_VIOLATION 0x000A
#define QUIC_UNSOLICITED_PONG 0x000B
+#define TLS_HANDSHAKE_FAILED 0x0201
+#define TLS_FATAL_ALERT_GENERATED 0x0202
+#define TLS_FATAL_ALERT_RECEIVED 0x0203
+
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)" },
@@ -360,6 +364,10 @@ static const value_string quic_error_code_vals[] = {
{ 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_UNSOLICITED_PONG, "An endpoint received a PONG frame that did not correspond to any PING frame that it previously sent" },
+ /* TLS */
+ { TLS_HANDSHAKE_FAILED, "TLS_HANDSHAKE_FAILED (The TLS handshake failed)" },
+ { TLS_FATAL_ALERT_GENERATED, "TLS_FATAL_ALERT_GENERATED (A TLS fatal alert was sent causing the TLS connection to end prematurely)" },
+ { TLS_FATAL_ALERT_RECEIVED, "TLS_FATAL_ALERT_RECEIVED (A TLS fatal alert was sent received 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);