summaryrefslogtreecommitdiffstats
path: root/crypto/asymmetric_keys/x509_parser.h
diff options
context:
space:
mode:
authorDavid Howells2016-04-06 17:14:26 +0200
committerDavid Howells2016-04-11 23:42:55 +0200
commitcfb664ff2b71fbbdc438b8e6db2a1412440432a2 (patch)
tree8a57e6e577376339a77c61bfaa83fdce5252319e /crypto/asymmetric_keys/x509_parser.h
parentX.509: Use verify_signature() if we have a struct key * to use (diff)
downloadkernel-qcow2-linux-cfb664ff2b71fbbdc438b8e6db2a1412440432a2.tar.gz
kernel-qcow2-linux-cfb664ff2b71fbbdc438b8e6db2a1412440432a2.tar.xz
kernel-qcow2-linux-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.h6
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);