aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-spnego.c
diff options
context:
space:
mode:
authorGraeme Lunt <graeme.lunt@smhs.co.uk>2007-02-17 11:16:52 +0000
committerGraeme Lunt <graeme.lunt@smhs.co.uk>2007-02-17 11:16:52 +0000
commit1864da87a85ed3b685c423e9efaa2dffacc92334 (patch)
treeb92497d971a50e78bae7c42f4c28388bec8b98d8 /epan/dissectors/packet-spnego.c
parent822bb2e4892e7de30cf294c433f6131c2c312678 (diff)
This patch looks for a confounder in GSSWrap for DES_MAC_MD5 algorithm.
This is purely empirical as I can find no standard that says it should be there. However successful LDAP/SASL/GSSAPI between AD and Java client shows it seems to be present. If the confounder is not dissected, the LDAPMessage to fail to be decoded. svn path=/trunk/; revision=20833
Diffstat (limited to 'epan/dissectors/packet-spnego.c')
-rw-r--r--epan/dissectors/packet-spnego.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/epan/dissectors/packet-spnego.c b/epan/dissectors/packet-spnego.c
index 2ce6e97275..4fe7369ef9 100644
--- a/epan/dissectors/packet-spnego.c
+++ b/epan/dissectors/packet-spnego.c
@@ -1222,7 +1222,11 @@ dissect_spnego_krb5_wrap_base(tvbuff_t *tvb, int offset, packet_info *pinfo
* It certainly confounds code expecting all Kerberos 5
* GSS_Wrap() tokens to look the same....
*/
- if (sgn_alg == KRB_SGN_ALG_HMAC) {
+ if ((sgn_alg == KRB_SGN_ALG_HMAC) ||
+ /* there also seems to be a confounder for DES MAC MD5 - certainly seen when using with
+ SASL with LDAP between a Java client and Active Directory. If this breaks other things
+ we may need to make this an option. gal 17/2/06 */
+ (sgn_alg == KRB_SGN_ALG_DES_MAC_MD5)) {
proto_tree_add_item(tree, hf_spnego_krb5_confounder, tvb, offset, 8,
TRUE);
offset += 8;
@@ -1630,7 +1634,7 @@ void proto_register_spnego(void) {
"", HFILL }},
/*--- End of included file: packet-spnego-hfarr.c ---*/
-#line 1011 "packet-spnego-template.c"
+#line 1015 "packet-spnego-template.c"
};
/* List of subtrees */
@@ -1651,7 +1655,7 @@ void proto_register_spnego(void) {
&ett_spnego_InitialContextToken,
/*--- End of included file: packet-spnego-ettarr.c ---*/
-#line 1020 "packet-spnego-template.c"
+#line 1024 "packet-spnego-template.c"
};
/* Register protocol */