diff options
author | David Howells <dhowells@redhat.com> | 2014-07-01 11:40:19 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-07-08 08:50:08 -0400 |
commit | a4730357ee724f8c64f0292541ba3da8a95510fb (patch) | |
tree | 6fb1aa9af3515b0de6c6d5bcb85c3a44b8ba554e /include/crypto | |
parent | 9f0d33146e2ae81342a493c579c0e0c1aa84a527 (diff) |
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')
-rw-r--r-- | include/crypto/pkcs7.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/pkcs7.h b/include/crypto/pkcs7.h index 8f2628fbdfce..8ba0f3810d67 100644 --- a/include/crypto/pkcs7.h +++ b/include/crypto/pkcs7.h | |||
@@ -21,3 +21,8 @@ extern void pkcs7_free_message(struct pkcs7_message *pkcs7); | |||
21 | extern int pkcs7_get_content_data(const struct pkcs7_message *pkcs7, | 21 | extern int pkcs7_get_content_data(const struct pkcs7_message *pkcs7, |
22 | const void **_data, size_t *_datalen, | 22 | const void **_data, size_t *_datalen, |
23 | bool want_wrapper); | 23 | bool want_wrapper); |
24 | |||
25 | /* | ||
26 | * pkcs7_verify.c | ||
27 | */ | ||
28 | extern int pkcs7_verify(struct pkcs7_message *pkcs7); | ||