summaryrefslogtreecommitdiffstats
path: root/include/crypto/pkcs7.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-07-01 16:40:19 +0100
committerDavid Howells <dhowells@redhat.com>2014-07-08 13:50:08 +0100
commita4730357ee724f8c64f0292541ba3da8a95510fb (patch)
tree6fb1aa9af3515b0de6c6d5bcb85c3a44b8ba554e /include/crypto/pkcs7.h
parent9f0d33146e2ae81342a493c579c0e0c1aa84a527 (diff)
downloadop-kernel-dev-a4730357ee724f8c64f0292541ba3da8a95510fb.zip
op-kernel-dev-a4730357ee724f8c64f0292541ba3da8a95510fb.tar.gz
PKCS#7: Find the right key in the PKCS#7 key list and verify the signature
Find the appropriate key in the PKCS#7 key list and verify the signature with it. There may be several keys in there forming a chain. Any link in that chain or the root of that chain may be in our keyrings. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com> Reviewed-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/crypto/pkcs7.h')
-rw-r--r--include/crypto/pkcs7.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/pkcs7.h b/include/crypto/pkcs7.h
index 8f2628f..8ba0f38 100644
--- a/include/crypto/pkcs7.h
+++ b/include/crypto/pkcs7.h
@@ -21,3 +21,8 @@ extern void pkcs7_free_message(struct pkcs7_message *pkcs7);
extern int pkcs7_get_content_data(const struct pkcs7_message *pkcs7,
const void **_data, size_t *_datalen,
bool want_wrapper);
+
+/*
+ * pkcs7_verify.c
+ */
+extern int pkcs7_verify(struct pkcs7_message *pkcs7);
OpenPOWER on IntegriCloud