diff options
author | Stef Walter <stefw@gnome.org> | 2013-02-03 23:26:10 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-02-05 15:00:25 +0100 |
commit | 32ca4f6d3167d08fc985d66fe48f453954596f87 (patch) | |
tree | 4dd767287480a047e4f1370bc6925d2fb748ceea /common/x509.h | |
parent | 39e9f190416ecb4260a3b079e1d79fc2e55f5a33 (diff) |
Use the CN, OU or O of certificates to generate a label
* This is in cases where the certificate information does not
already have a friendly name or alias.
Diffstat (limited to 'common/x509.h')
-rw-r--r-- | common/x509.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/common/x509.h b/common/x509.h index 2ec5eb8..cbfc574 100644 --- a/common/x509.h +++ b/common/x509.h @@ -60,4 +60,20 @@ p11_array * p11_x509_parse_extended_key_usage (p11_dict *asn1_defs, const unsigned char *ext_der, size_t ext_len); +char * p11_x509_parse_dn_name (p11_dict *asn_defs, + const unsigned char *der, + size_t der_len, + const unsigned char *oid); + +char * p11_x509_lookup_dn_name (node_asn *asn, + const char *dn_field, + const unsigned char *der, + size_t der_len, + const unsigned char *oid); + +char * p11_x509_parse_directory_string (const unsigned char *input, + size_t input_len, + bool *unknown_string, + size_t *string_len); + #endif /* P11_X509_H_ */ |