aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/tcap/packet-tcap-template.c
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/tcap/packet-tcap-template.c')
-rw-r--r--asn1/tcap/packet-tcap-template.c60
1 files changed, 0 insertions, 60 deletions
diff --git a/asn1/tcap/packet-tcap-template.c b/asn1/tcap/packet-tcap-template.c
index ab52f8b7c9..c32a9bf917 100644
--- a/asn1/tcap/packet-tcap-template.c
+++ b/asn1/tcap/packet-tcap-template.c
@@ -35,7 +35,6 @@
#include <stdio.h>
#include <string.h>
-#include <epan/asn1.h>
#include "packet-ber.h"
#include "packet-tcap.h"
@@ -257,65 +256,6 @@ proto_reg_handoff_tcap(void)
-/* some functions from packet_tcap which are needed by some other dissectors */
-
-#define TC_DS_OK 1
-#define TC_DS_FAIL 0
-
-
-int
-tcap_find_eoc(ASN1_SCK *asn1)
-{
- guint saved_offset;
- gint prev_offset;
- guint tag;
- guint len;
- gboolean def_len;
-
- saved_offset = asn1->offset;
-
- while (!asn1_eoc(asn1, -1))
- {
- prev_offset = asn1->offset;
- asn1_id_decode1(asn1, &tag);
- asn1_length_decode(asn1, &def_len, &len);
-
- if (def_len)
- {
- asn1->offset += len;
- }
- else
- {
- asn1->offset += tcap_find_eoc(asn1);
- asn1_eoc_decode(asn1, -1);
- }
- if (prev_offset >= asn1->offset)
- THROW(ReportedBoundsError);
- }
-
- len = asn1->offset - saved_offset;
- asn1->offset = saved_offset;
-
- return(len);
-}
-
-gboolean
-tcap_check_tag(ASN1_SCK *asn1, guint tag)
-{
- guint saved_offset, real_tag;
-
- if (tvb_length_remaining(asn1->tvb, asn1->offset) <= 0)
- {
- return (FALSE);
- }
-
- saved_offset = asn1->offset;
- asn1_id_decode1(asn1, &real_tag);
- asn1->offset = saved_offset;
- return (tag == real_tag);
-}
-
-
static int
dissect_tcap_param(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset)
{