]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: Generalise system_verify_data() to provide access to internal content
authorDavid Howells <dhowells@redhat.com>
Wed, 6 Apr 2016 15:14:24 +0000 (16:14 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 6 Apr 2016 15:14:24 +0000 (16:14 +0100)
commit8fabb42d534626e258b0c8a916002cc3d7d85552
tree31ebec81d2f52adc89796dd063468235bfd1cc0e
parentda69547b758129cd1a2cde437de8f38f1867f116
KEYS: Generalise system_verify_data() to provide access to internal content

Generalise system_verify_data() to provide access to internal content
through a callback.  This allows all the PKCS#7 stuff to be hidden inside
this function and removed from the PE file parser and the PKCS#7 test key.

If external content is not required, NULL should be passed as data to the
function.  If the callback is not required, that can be set to NULL.

The function is now called verify_pkcs7_signature() to contrast with
verify_pefile_signature() and the definitions of both have been moved into
linux/verification.h along with the key_being_used_for enum.

Signed-off-by: David Howells <dhowells@redhat.com>
15 files changed:
arch/x86/kernel/kexec-bzimage64.c
certs/system_keyring.c
crypto/asymmetric_keys/Kconfig
crypto/asymmetric_keys/mscode_parser.c
crypto/asymmetric_keys/pkcs7_key_type.c
crypto/asymmetric_keys/pkcs7_parser.c
crypto/asymmetric_keys/verify_pefile.c
crypto/asymmetric_keys/verify_pefile.h
include/crypto/pkcs7.h
include/crypto/public_key.h
include/keys/asymmetric-type.h
include/keys/system_keyring.h
include/linux/verification.h [new file with mode: 0644]
include/linux/verify_pefile.h [deleted file]
kernel/module_signing.c