aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/asn1/spnego
diff options
context:
space:
mode:
authorIsaac Boukris <iboukris@gmail.com>2021-05-22 15:58:38 +0300
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-06-08 17:36:44 +0000
commitf94f22b7f8661e1b071e69cd8c394b7cf1003bcb (patch)
tree27048bf9552c95d5a9c42f0d14d6f0aa3134bfc6 /epan/dissectors/asn1/spnego
parent33a61d14b54a50da7139664e617d8b65ae5f19bf (diff)
krb5: add TGT-REQ/TGT-REP dissection per the U2U RFC draft
https://datatracker.ietf.org/doc/html/draft-swift-win2k-krb-user2user-03
Diffstat (limited to 'epan/dissectors/asn1/spnego')
-rw-r--r--epan/dissectors/asn1/spnego/packet-spnego-template.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/dissectors/asn1/spnego/packet-spnego-template.c b/epan/dissectors/asn1/spnego/packet-spnego-template.c
index 0719b7650d..a4f9a50009 100644
--- a/epan/dissectors/asn1/spnego/packet-spnego-template.c
+++ b/epan/dissectors/asn1/spnego/packet-spnego-template.c
@@ -108,6 +108,8 @@ static int dissect_spnego_NegTokenInit2(gboolean implicit_tag, tvbuff_t *tvb,
#define KRB_TOKEN_GETMIC 0x0101
#define KRB_TOKEN_WRAP 0x0102
#define KRB_TOKEN_DELETE_SEC_CONTEXT 0x0201
+#define KRB_TOKEN_TGT_REQ 0x0004
+#define KRB_TOKEN_TGT_REP 0x0104
#define KRB_TOKEN_CFX_GETMIC 0x0404
#define KRB_TOKEN_CFX_WRAP 0x0405
@@ -118,6 +120,8 @@ static const value_string spnego_krb5_tok_id_vals[] = {
{ KRB_TOKEN_GETMIC, "KRB5_GSS_GetMIC" },
{ KRB_TOKEN_WRAP, "KRB5_GSS_Wrap" },
{ KRB_TOKEN_DELETE_SEC_CONTEXT, "KRB5_GSS_Delete_sec_context" },
+ { KRB_TOKEN_TGT_REQ, "KERB_TGT_REQUEST" },
+ { KRB_TOKEN_TGT_REP, "KERB_TGT_REPLY" },
{ KRB_TOKEN_CFX_GETMIC, "KRB_TOKEN_CFX_GetMic" },
{ KRB_TOKEN_CFX_WRAP, "KRB_TOKEN_CFX_WRAP" },
{ 0, NULL}
@@ -264,6 +268,13 @@ dissect_spnego_krb5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* d
switch (token_id) {
+ case KRB_TOKEN_TGT_REQ:
+ offset = dissect_kerberos_TGT_REQ(FALSE, tvb, offset, &asn1_ctx, subtree, -1);
+ break;
+ case KRB_TOKEN_TGT_REP:
+ offset = dissect_kerberos_TGT_REP(FALSE, tvb, offset, &asn1_ctx, subtree, -1);
+ break;
+
case KRB_TOKEN_AP_REQ:
case KRB_TOKEN_AP_REP:
case KRB_TOKEN_AP_ERR: