From 67ce28e9d9ec1528c9b762b0912d6a7e339fbcd5 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 21 Jan 2013 10:51:04 +0100 Subject: Move the X.509 extension parsing code in common/ * So it can be used by other code, in addition to the trust stuff --- common/x509.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'common/x509.h') 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 +#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); -- cgit v1.1