aboutsummaryrefslogtreecommitdiffstats
path: root/packet-kerberos.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@ns.aus.com>2002-09-07 03:32:49 +0000
committerRichard Sharpe <sharpe@ns.aus.com>2002-09-07 03:32:49 +0000
commit5739c418b79f8da8c953d1a8e3e5376786aefd58 (patch)
tree0746b8b13de11eb86870a3b4e3ca295868c4e060 /packet-kerberos.c
parent0a749ca6b4457a91ada54756a6fd3be22955a841 (diff)
OK, now have KRB5 dissector playing nice.
svn path=/trunk/; revision=6209
Diffstat (limited to 'packet-kerberos.c')
-rw-r--r--packet-kerberos.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/packet-kerberos.c b/packet-kerberos.c
index f609b4b1a6..859f325354 100644
--- a/packet-kerberos.c
+++ b/packet-kerberos.c
@@ -3,7 +3,7 @@
* Wes Hardaker (c) 2000
* wjhardaker@ucdavis.edu
*
- * $Id: packet-kerberos.c,v 1.31 2002/09/05 03:49:03 sharpe Exp $
+ * $Id: packet-kerberos.c,v 1.32 2002/09/07 03:32:49 sharpe Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -342,7 +342,7 @@ static const value_string krb5_msg_types[] = {
static int dissect_PrincipalName(char *title, ASN1_SCK *asn1p,
packet_info *pinfo, proto_tree *tree,
int start_offset);
-int dissect_Ticket(ASN1_SCK *asn1p, packet_info *pinfo,
+static int dissect_Ticket(ASN1_SCK *asn1p, packet_info *pinfo,
proto_tree *tree, int start_offset);
static int dissect_EncryptedData(char *title, ASN1_SCK *asn1p,
packet_info *pinfo, proto_tree *tree,
@@ -536,8 +536,8 @@ dissect_type_value_pair(ASN1_SCK *asn1p, int *inoff,
*inoff = offset + *val_len;
}
-static gboolean
-dissect_kerberos_main(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+gboolean
+dissect_kerberos_main(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int do_col_info)
{
int offset = 0;
proto_tree *kerberos_tree = NULL;
@@ -607,7 +607,7 @@ dissect_kerberos_main(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
offset += length;
- if (check_col(pinfo->cinfo, COL_INFO))
+ if (do_col_info & check_col(pinfo->cinfo, COL_INFO))
col_add_str(pinfo->cinfo, COL_INFO, val_to_str(msg_type, krb5_msg_types,
"Unknown msg type %#x"));
@@ -1028,7 +1028,7 @@ dissect_kerberos(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (check_col(pinfo->cinfo, COL_PROTOCOL))
col_set_str(pinfo->cinfo, COL_PROTOCOL, "KRB5");
- dissect_kerberos_main(tvb, pinfo, tree);
+ dissect_kerberos_main(tvb, pinfo, tree, TRUE);
}
static int
@@ -1267,7 +1267,7 @@ dissect_EncryptedData(char *title, ASN1_SCK *asn1p, packet_info *pinfo,
return offset - start_offset;
}
-int
+static int
dissect_Ticket(ASN1_SCK *asn1p, packet_info *pinfo,
proto_tree *tree, int start_offset)
{