diff options
| author | Stef Walter <stefw@gnome.org> | 2013-03-15 16:24:27 +0100 |
|---|---|---|
| committer | Stef Walter <stefw@gnome.org> | 2013-03-15 18:00:10 +0100 |
| commit | 29af2c1eeca2fb0257e1172753b129d638472f0f (patch) | |
| tree | 0d9f46ad34c3055a2cb5e555509e183e8a7d0294 /common/x509.h | |
| parent | 2d75eb32793a569dc3de359bb623713c80393d24 (diff) | |
trust: Use a SHA-1 hash of subjectPublicKeyInfo as CKA_ID by default
This is what's recommended by the spec, and allows stapled extensions
to hang off a predictable CKA_ID.
https://bugs.freedesktop.org/show_bug.cgi?id=62329
Diffstat (limited to 'common/x509.h')
| -rw-r--r-- | common/x509.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/x509.h b/common/x509.h index cbfc574..af91c28 100644 --- a/common/x509.h +++ b/common/x509.h @@ -46,6 +46,11 @@ unsigned char * p11_x509_find_extension (node_asn *cert, size_t der_len, size_t *ext_len); +bool p11_x509_calc_keyid (node_asn *cert, + const unsigned char *der, + size_t der_len, + unsigned char *keyid); + bool p11_x509_parse_basic_constraints (p11_dict *asn1_defs, const unsigned char *ext_der, size_t ext_len, |
