diff options
author | David Howells <dhowells@redhat.com> | 2016-04-06 16:14:26 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-04-11 22:42:55 +0100 |
commit | cfb664ff2b71fbbdc438b8e6db2a1412440432a2 (patch) | |
tree | 8a57e6e577376339a77c61bfaa83fdce5252319e /crypto/asymmetric_keys/x509_parser.h | |
parent | 5f7f5c81e59be5ce262c5b7d0ede9565a2558d80 (diff) | |
download | lwn-cfb664ff2b71fbbdc438b8e6db2a1412440432a2.tar.gz lwn-cfb664ff2b71fbbdc438b8e6db2a1412440432a2.zip |
X.509: Move the trust validation code out to its own file
Move the X.509 trust validation code out to its own file so that it can be
generalised.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'crypto/asymmetric_keys/x509_parser.h')
-rw-r--r-- | crypto/asymmetric_keys/x509_parser.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/asymmetric_keys/x509_parser.h b/crypto/asymmetric_keys/x509_parser.h index 05eef1c68881..7a802b09a509 100644 --- a/crypto/asymmetric_keys/x509_parser.h +++ b/crypto/asymmetric_keys/x509_parser.h @@ -58,3 +58,9 @@ extern int x509_decode_time(time64_t *_t, size_t hdrlen, */ extern int x509_get_sig_params(struct x509_certificate *cert); extern int x509_check_for_self_signed(struct x509_certificate *cert); + +/* + * public_key_trust.c + */ +extern int x509_validate_trust(struct x509_certificate *cert, + struct key *trust_keyring); |