aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-spnego.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-09-21 18:27:28 +0000
committerGuy Harris <guy@alum.mit.edu>2005-09-21 18:27:28 +0000
commit4e09b5e0b3672e6893d6d90e833cb9e05436faf9 (patch)
treec099a9f4cc6d44e9ad3a348e140b2923cfdc8e46 /epan/dissectors/packet-spnego.c
parent0fb81e221e18e15274da6e0360ed0bc77e93aeca (diff)
Some compilers don't allow a static declaration of a function inside
another function, so move the declaration of dissect_spnego_PrincipalSeq() to the top of the file. svn path=/trunk/; revision=15938
Diffstat (limited to 'epan/dissectors/packet-spnego.c')
-rw-r--r--epan/dissectors/packet-spnego.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/epan/dissectors/packet-spnego.c b/epan/dissectors/packet-spnego.c
index d5b084d3dd..a561808a1c 100644
--- a/epan/dissectors/packet-spnego.c
+++ b/epan/dissectors/packet-spnego.c
@@ -133,6 +133,15 @@ static gint ett_spnego_InitialContextToken = -1;
static dissector_handle_t data_handle;
+/*
+ * Unfortunately, we have to have a forward declaration of this,
+ * as the code generated by asn2eth includes a call before the
+ * definition.
+ */
+static int dissect_spnego_PrincipalSeq(gboolean implicit_tag, tvbuff_t *tvb,
+ int offset, packet_info *pinfo,
+ proto_tree *tree, int hf_index);
+
/*--- Included file: packet-spnego-fn.c ---*/
@@ -146,8 +155,7 @@ dissect_spnego_MechType(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, pa
gssapi_oid_value *value;
- offset = dissect_ber_object_identifier(implicit_tag, pinfo, tree, tvb, offset, hf_index,
- MechType_oid);
+ offset = dissect_ber_object_identifier(implicit_tag, pinfo, tree, tvb, offset, hf_index, MechType_oid);
value = gssapi_lookup_oid_str(MechType_oid);
@@ -260,9 +268,6 @@ dissect_spnego_T_NegTokenInit_mechListMIC(gboolean implicit_tag _U_, tvbuff_t *t
gboolean pc;
gint32 tag;
tvbuff_t *mechListMIC_tvb;
- static int dissect_spnego_PrincipalSeq(gboolean implicit_tag, tvbuff_t *tvb,
- int offset, packet_info *pinfo,
- proto_tree *tree, int hf_index);
/*
* There seems to be two different forms this can take,