summaryrefslogtreecommitdiff
path: root/lib/libtasn1.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-12 22:32:20 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-09-12 22:45:28 +0200
commit92abf0cd89b512514a18754f913fb8d828ed5c8b (patch)
tree49e92ffbeef0267963f60435b3b77ecab617cf10 /lib/libtasn1.h
parentb86e75de8bc3a35620f069b7b00d680284d86eb5 (diff)
downloadlibtasn1-92abf0cd89b512514a18754f913fb8d828ed5c8b.tar.gz
libtasn1-92abf0cd89b512514a18754f913fb8d828ed5c8b.tar.bz2
libtasn1-92abf0cd89b512514a18754f913fb8d828ed5c8b.zip
Added asn1_read_node_value()
Diffstat (limited to 'lib/libtasn1.h')
-rw-r--r--lib/libtasn1.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libtasn1.h b/lib/libtasn1.h
index 30154ae..01030df 100644
--- a/lib/libtasn1.h
+++ b/lib/libtasn1.h
@@ -112,7 +112,6 @@ extern "C"
typedef node_asn *ASN1_TYPE;
-
/* maximum number of characters of a name */
/* inside a file with ASN1 definitons */
#define ASN1_MAX_NAME_SIZE 128
@@ -130,6 +129,15 @@ extern "C"
};
typedef struct static_struct_asn ASN1_ARRAY_TYPE;
+ 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 */
+ };
+ typedef struct node_data_struct ASN1_DATA_NODE;
+
/***********************************/
/* Fixed constants */
/***********************************/
@@ -179,6 +187,9 @@ extern "C"
void *ivalue, int *len);
extern ASN1_API asn1_retCode
+ asn1_read_node_value (ASN1_TYPE node, ASN1_DATA_NODE* data);
+
+ extern ASN1_API asn1_retCode
asn1_number_of_elements (ASN1_TYPE element, const char *name, int *num);
extern ASN1_API asn1_retCode