Browse Source

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>
David Howells 9 years ago
parent
commit
3c8f227871
1 changed files with 1 additions and 1 deletions
  1. 1 1
      crypto/asymmetric_keys/pkcs7_key_type.c

+ 1 - 1
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,
 	return verify_pkcs7_signature(NULL, 0,
 				      prep->data, prep->datalen,
 				      prep->data, prep->datalen,
-				      NULL, usage,
+				      (void *)1UL, usage,
 				      pkcs7_view_content, prep);
 				      pkcs7_view_content, prep);
 }
 }