Browse Source

pefile: Validate PKCS#7 trust chain

Validate the PKCS#7 trust chain against the contents of the system keyring.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
David Howells 11 năm trước cách đây
mục cha
commit
98801c002f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      crypto/asymmetric_keys/verify_pefile.c

+ 1 - 1
crypto/asymmetric_keys/verify_pefile.c

@@ -449,7 +449,7 @@ int verify_pefile_signature(const void *pebuf, unsigned pelen,
 	if (ret < 0)
 		goto error;
 
-	ret = -ENOANO; // Not yet complete
+	ret = pkcs7_validate_trust(pkcs7, trusted_keyring, _trusted);
 
 error:
 	pkcs7_free_message(ctx.pkcs7);