aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ber.h
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2006-06-15 07:46:07 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2006-06-15 07:46:07 +0000
commitf0f319acf1e107ae1c6f6ae8adac0075401c8ce3 (patch)
tree94cb0a611949eed9ac6b0a14af0dfe9b21bb5fd4 /epan/dissectors/packet-ber.h
parent012f0c5f735ddc3b32f9c8dd42f61c625683a8e8 (diff)
- BER_MAX_OID_STR_LEN removed and replaced with MAX_OID_STR_LEN
- x411 and dop regenerated - dissect_ber_tagged_type() prepared (support in asn2wrs will follow) svn path=/trunk/; revision=18468
Diffstat (limited to 'epan/dissectors/packet-ber.h')
-rw-r--r--epan/dissectors/packet-ber.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ber.h b/epan/dissectors/packet-ber.h
index 182d8b0450..f820f79e39 100644
--- a/epan/dissectors/packet-ber.h
+++ b/epan/dissectors/packet-ber.h
@@ -37,6 +37,8 @@ if (check_col(pinfo->cinfo, COL_INFO)){ \
tvb_get_guint8(tvb, 9999);
typedef int (*ber_callback)(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset);
+typedef int (*ber_type_fn)(gboolean, tvbuff_t*, int, packet_info*, proto_tree*, int);
+
#define BER_CLASS_UNI 0
#define BER_CLASS_APP 1
@@ -73,7 +75,6 @@ typedef int (*ber_callback)(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb,
#define BER_UNI_TAG_CHARACTERSTRING 29
#define BER_UNI_TAG_BMPString 30
-#define BER_MAX_OID_STR_LEN MAX_OID_STR_LEN
/* this function dissects the identifier octer of the BER TLV.
* We only handle TAGs (and LENGTHs) that fit inside 32 bit integers.
@@ -87,6 +88,8 @@ extern int dissect_unknown_ber(packet_info *pinfo, tvbuff_t *tvb, int offset, pr
extern int get_ber_length(proto_tree *tree, tvbuff_t *tvb, int offset, guint32 *length, gboolean *ind);
extern int dissect_ber_length(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 *length, gboolean *ind);
+extern int dissect_ber_tagged_type(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, gint8 tag_cls, gint32 tag_tag, gboolean tag_impl, ber_type_fn type);
+
extern int dissect_ber_octet_string(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, tvbuff_t **out_tvb);
extern int dissect_ber_octet_string_wcb(gboolean implicit_tag, packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, gint hf_id, ber_callback func);