aboutsummaryrefslogtreecommitdiffstats
path: root/asn1.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-03-01 02:48:10 +0000
committerGuy Harris <guy@alum.mit.edu>2002-03-01 02:48:10 +0000
commitd8a08e186c8eec199c6b94466fc0210ca4f15045 (patch)
tree6009602e8f6b5b3bebf67bfea15142b33d711b2d /asn1.h
parent84b6b76cf3910dd07d44907f1cb7bb04b09f94c1 (diff)
Add a routine to "asn1.c" to translate ASN1_ERR_ values to strings. Use
that in the SNMP dissector. Check the return values of ASN.1 routines in the LDAP dissector, and have all the subroutines in that disesctor that can return error indications return ASN1_ERR_ values. Have the routines that can supply a pointer to a newly-created protocol-tree item use the right type for items ("proto_item *", not "proto_tree *", even though they are, at least currently, typedefs for the same type), and use "proto_item" for the type of the item a pointer to which is passed to those routines. Before calling those routines, set the item pointer to null, in case the routine fails. Don't check the return value of "parse_filter_strings()" against -1 - that routine can't return -1. svn path=/trunk/; revision=4833
Diffstat (limited to 'asn1.h')
-rw-r--r--asn1.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/asn1.h b/asn1.h
index 1befdfc9c7..d6125ba880 100644
--- a/asn1.h
+++ b/asn1.h
@@ -1,10 +1,10 @@
/* asn1.h
* Definitions for ASN.1 BER dissection
*
- * $Id: asn1.h,v 1.5 2001/04/15 07:30:02 guy Exp $
+ * $Id: asn1.h,v 1.6 2002/03/01 02:48:10 guy Exp $
*
* Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
*
* Based on "g_asn1.h" from:
*
@@ -140,4 +140,7 @@ int asn1_oid_value_decode (ASN1_SCK *asn1, int enc_len, subid_t **oid,
guint *len);
int asn1_oid_decode ( ASN1_SCK *asn1, subid_t **oid, guint *len, guint *nbytes);
int asn1_sequence_decode ( ASN1_SCK *asn1, guint *seq_len, guint *nbytes);
+
+char *asn1_err_to_str (int err);
+
#endif