summaryrefslogtreecommitdiff
path: root/trust/asn1.h
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-07-04 15:37:34 +0200
committerStef Walter <stef@thewalter.net>2013-07-04 15:42:16 +0200
commitec7c2ff2011d774217c1e35d664072d0487853c7 (patch)
treec2ff76fc08c9b237f101d4119451ef04229c7788 /trust/asn1.h
parenta2165fe35e336fd807af053a21a396b020f90a23 (diff)
trust: Add p11_asn1_read() and p11_asn1_free() functions
Some helpers for commonly used ASN.1 related stuff.
Diffstat (limited to 'trust/asn1.h')
-rw-r--r--trust/asn1.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/trust/asn1.h b/trust/asn1.h
index 1bd7dd1..a5f9caf 100644
--- a/trust/asn1.h
+++ b/trust/asn1.h
@@ -55,6 +55,12 @@ node_asn * p11_asn1_create (p11_dict *asn1_defs,
unsigned char * p11_asn1_encode (node_asn *asn,
size_t *der_len);
+void * p11_asn1_read (node_asn *asn,
+ const char *field,
+ size_t *length);
+
+void p11_asn1_free (void *asn);
+
ssize_t p11_asn1_tlv_length (const unsigned char *data,
size_t length);