diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-12 23:15:02 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-09-12 23:15:02 +0200 |
commit | e80a9f2df71640e988f02cac76e2a2e7ae79d9c9 (patch) | |
tree | 79bf42dc689e8749090217977b596c67ce7cc255 /lib/libtasn1.h | |
parent | 92abf0cd89b512514a18754f913fb8d828ed5c8b (diff) | |
download | libtasn1-e80a9f2df71640e988f02cac76e2a2e7ae79d9c9.tar.gz libtasn1-e80a9f2df71640e988f02cac76e2a2e7ae79d9c9.tar.bz2 libtasn1-e80a9f2df71640e988f02cac76e2a2e7ae79d9c9.zip |
Node type field is now included in ASN1_DATA_NODE.
Diffstat (limited to 'lib/libtasn1.h')
-rw-r--r-- | lib/libtasn1.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/lib/libtasn1.h b/lib/libtasn1.h index 01030df..3373828 100644 --- a/lib/libtasn1.h +++ b/lib/libtasn1.h @@ -129,12 +129,37 @@ extern "C" }; typedef struct static_struct_asn ASN1_ARRAY_TYPE; +/* List of constants for field type of typedef node_asn */ +#define ASN1_ETYPE_CONSTANT 1 +#define ASN1_ETYPE_IDENTIFIER 2 +#define ASN1_ETYPE_INTEGER 3 +#define ASN1_ETYPE_BOOLEAN 4 +#define ASN1_ETYPE_SEQUENCE 5 +#define ASN1_ETYPE_BIT_STRING 6 +#define ASN1_ETYPE_OCTET_STRING 7 +#define ASN1_ETYPE_TAG 8 +#define ASN1_ETYPE_DEFAULT 9 +#define ASN1_ETYPE_SIZE 10 +#define ASN1_ETYPE_SEQUENCE_OF 11 +#define ASN1_ETYPE_OBJECT_ID 12 +#define ASN1_ETYPE_ANY 13 +#define ASN1_ETYPE_SET 14 +#define ASN1_ETYPE_SET_OF 15 +#define ASN1_ETYPE_DEFINITIONS 16 +#define ASN1_ETYPE_TIME 17 +#define ASN1_ETYPE_CHOICE 18 +#define ASN1_ETYPE_IMPORTS 19 +#define ASN1_ETYPE_NULL 20 +#define ASN1_ETYPE_ENUMERATED 21 +#define ASN1_ETYPE_GENERALSTRING 27 + struct node_data_struct { const char *name; /* Node name */ const void *value; /* Node value */ unsigned int value_len; /* Node value size */ - unsigned int vals[4]; /* reserved for future use */ + unsigned int type; /* Node value type (ASN1_ETYPE_*) */ + unsigned int vals[3]; /* reserved for future use */ }; typedef struct node_data_struct ASN1_DATA_NODE; |