summaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys/x509_parser.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-04-06 15:14:26 (GMT)
committerDavid Howells <dhowells@redhat.com>2016-04-11 21:42:55 (GMT)
commitcfb664ff2b71fbbdc438b8e6db2a1412440432a2 (patch)
tree8a57e6e577376339a77c61bfaa83fdce5252319e /crypto/asymmetric_keys/x509_parser.h
parent5f7f5c81e59be5ce262c5b7d0ede9565a2558d80 (diff)
downloadlinux-cfb664ff2b71fbbdc438b8e6db2a1412440432a2.tar.xz
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 05eef1c..7a802b0 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);