Removed trailing whitespaces from .h and .c files using the
[obnox/wireshark/wip.git] / asn1.h
diff --git a/asn1.h b/asn1.h
index 1befdfc9c706dd7abd5ca1778d61e6b150a7d410..0dca04682065d0d755d14e0c6c6312394fb901e2 100644 (file)
--- 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.9 2002/08/02 23:35:46 jmayer Exp $
  *
  * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@zing.org>
+ * By Gerald Combs <gerald@ethereal.com>
  *
  * Based on "g_asn1.h" from:
  *
  * "config.h", to get the right #defines defined, so that we properly
  * typedef "subid_t".
  */
-#if defined(HAVE_UCD_SNMP_SNMP_H)
-typedef u_long subid_t;        /* UCD SNMP */
+#if defined(HAVE_UCD_SNMP)
+typedef gulong subid_t;        /* UCD SNMP */
 #else
-typedef u_int  subid_t;        /* CMU SNMP, libsmi, or nothing */
+typedef guint  subid_t;        /* CMU SNMP, libsmi, or nothing */
 #endif
 
 #define ASN1_ERR_NOERROR               0       /* no error */
@@ -122,7 +122,7 @@ int asn1_header_decode(ASN1_SCK *asn1, guint *cls, guint *con, guint *tag,
 int asn1_eoc (ASN1_SCK *asn1, int eoc);
 int asn1_eoc_decode (ASN1_SCK *asn1, int eoc);
 int asn1_null_decode (ASN1_SCK *asn1, int enc_len);
-int asn1_bool_decode (ASN1_SCK *asn1, int enc_len, gboolean *bool);
+int asn1_bool_decode (ASN1_SCK *asn1, int enc_len, gboolean *boolean);
 int asn1_int32_value_decode (ASN1_SCK *asn1, int enc_len, gint32 *integer);
 int asn1_int32_decode (ASN1_SCK *asn1, gint32 *integer, guint *nbytes);
 int asn1_uint32_value_decode (ASN1_SCK *asn1, int enc_len, guint *integer);
@@ -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