• David Howells's avatar
    KEYS: Generalise system_verify_data() to provide access to internal content · e68503bd
    David Howells authored
    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: default avatarDavid Howells <dhowells@redhat.com>
    e68503bd
module_signing.c 2.22 KB