diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-11-10 09:21:18 +0100 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-11-10 09:21:18 +0100 |
commit | b7ceb8464c69f4ce8d2043ac016b6ba628c7cece (patch) | |
tree | 92c634fefa3ed202a857616becd1f81d08d09d0c /lib/int.h | |
parent | a5e2b894a96e8dc786973357c7a17a67a3e5c4e5 (diff) | |
download | libtasn1-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.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 |