diff options
Diffstat (limited to 'common/x509.h')
-rw-r--r-- | common/x509.h | 9 |
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); |