Skip to content

Commit

Permalink
pefile: Validate PKCS#7 trust chain
Browse files Browse the repository at this point in the history
Validate the PKCS#7 trust chain against the contents of the system keyring.

Signed-off-by: David Howells <[email protected]>
Acked-by: Vivek Goyal <[email protected]>
  • Loading branch information
dhowells committed Jul 9, 2014
1 parent af316fc commit 98801c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/asymmetric_keys/verify_pefile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 98801c0

Please sign in to comment.