summaryrefslogtreecommitdiff
path: root/common/x509.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-01-21 10:51:04 +0100
committerStef Walter <stefw@gnome.org>2013-02-05 14:54:53 +0100
commit67ce28e9d9ec1528c9b762b0912d6a7e339fbcd5 (patch)
treef6a6b30e9abcf03bd66bd6a1f5e6ba7dee0d8969 /common/x509.h
parent5e4a3ea9b8f254d99544490eed8e17e88c81f975 (diff)
Move the X.509 extension parsing code in common/
* So it can be used by other code, in addition to the trust stuff
Diffstat (limited to 'common/x509.h')
-rw-r--r--common/x509.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/x509.h b/common/x509.h
index b7c9a5e..2ec5eb8 100644
--- a/common/x509.h
+++ b/common/x509.h
@@ -34,11 +34,18 @@
#include <libtasn1.h>
+#include "array.h"
#include "dict.h"
#ifndef P11_X509_H_
#define P11_X509_H_
+unsigned char * p11_x509_find_extension (node_asn *cert,
+ const unsigned char *oid,
+ const unsigned char *der,
+ size_t der_len,
+ size_t *ext_len);
+
bool p11_x509_parse_basic_constraints (p11_dict *asn1_defs,
const unsigned char *ext_der,
size_t ext_len,
@@ -49,7 +56,7 @@ bool p11_x509_parse_key_usage (p11_dict *asn1_defs,
size_t length,
unsigned int *ku);
-p11_dict * p11_x509_parse_extended_key_usage (p11_dict *asn1_defs,
+p11_array * p11_x509_parse_extended_key_usage (p11_dict *asn1_defs,
const unsigned char *ext_der,
size_t ext_len);