summaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-05-11 14:31:55 +0100
committerDavid Howells <dhowells@redhat.com>2016-05-11 14:31:55 +0100
commita772d1c7e49f5e84a102b46ae0543ba5b0f31566 (patch)
treef881890365de7df912f8dfe3d33d6b73379145e5 /crypto/asymmetric_keys
parentfb2b7eea1a8ee4d730807f1d00103d5886e1c0e8 (diff)
downloadlinux-crypto-a772d1c7e49f5e84a102b46ae0543ba5b0f31566.tar.gz
linux-crypto-a772d1c7e49f5e84a102b46ae0543ba5b0f31566.zip
KEYS: The PKCS#7 test key type should use the secondary keyring
The PKCS#7 test key type should use the secondary keyring instead of the built-in keyring if available as the source of trustworthy keys. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'crypto/asymmetric_keys')
-rw-r--r--crypto/asymmetric_keys/pkcs7_key_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asymmetric_keys/pkcs7_key_type.c b/crypto/asymmetric_keys/pkcs7_key_type.c
index 3b925238..1063b644 100644
--- a/crypto/asymmetric_keys/pkcs7_key_type.c
+++ b/crypto/asymmetric_keys/pkcs7_key_type.c
@@ -62,7 +62,7 @@ static int pkcs7_preparse(struct key_preparsed_payload *prep)
return verify_pkcs7_signature(NULL, 0,
prep->data, prep->datalen,
- NULL, usage,
+ (void *)1UL, usage,
pkcs7_view_content, prep);
}