summaryrefslogtreecommitdiff
path: root/lib/int.h
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-11-10 09:21:18 +0100
committerSimon Josefsson <simon@josefsson.org>2008-11-10 09:21:18 +0100
commitb7ceb8464c69f4ce8d2043ac016b6ba628c7cece (patch)
tree92c634fefa3ed202a857616becd1f81d08d09d0c /lib/int.h
parenta5e2b894a96e8dc786973357c7a17a67a3e5c4e5 (diff)
downloadlibtasn1-b7ceb8464c69f4ce8d2043ac016b6ba628c7cece.tar.gz
libtasn1-b7ceb8464c69f4ce8d2043ac016b6ba628c7cece.tar.bz2
libtasn1-b7ceb8464c69f4ce8d2043ac016b6ba628c7cece.zip
Reapply Nikos' optimization patch. Remove deprecated functions.
Diffstat (limited to 'lib/int.h')
-rw-r--r--lib/int.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/int.h b/lib/int.h
index 0c9c06f..d349cff 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -39,6 +39,20 @@
#include <libtasn1.h>
+#define ASN1_SMALL_VALUE_SIZE 16
+
+struct node_asn
+{
+ char *name; /* Node name */
+ unsigned int type; /* Node type */
+ unsigned char *value; /* Node value */
+ int value_len;
+ struct node_asn_struct *down; /* Pointer to the son node */
+ struct node_asn_struct *right; /* Pointer to the brother node */
+ struct node_asn_struct *left; /* Pointer to the next list element */
+ unsigned char small_value[ASN1_SMALL_VALUE_SIZE]; /* For small values */
+};
+
/*
#define LIBTASN1_DEBUG
#define LIBTASN1_DEBUG_PARSER