KEYS: Generalise system_verify_data() to provide access to internal content
[cascardo/linux.git] / crypto / asymmetric_keys / verify_pefile.h
index a133eb8..cd4d209 100644 (file)
@@ -9,7 +9,6 @@
  * 2 of the Licence, or (at your option) any later version.
  */
 
-#include <linux/verify_pefile.h>
 #include <crypto/pkcs7.h>
 #include <crypto/hash_info.h>
 
@@ -23,7 +22,6 @@ struct pefile_context {
        unsigned        sig_offset;
        unsigned        sig_len;
        const struct section_header *secs;
-       struct pkcs7_message *pkcs7;
 
        /* PKCS#7 MS Individual Code Signing content */
        const void      *digest;                /* Digest */
@@ -39,4 +37,5 @@ struct pefile_context {
 /*
  * mscode_parser.c
  */
-extern int mscode_parse(struct pefile_context *ctx);
+extern int mscode_parse(void *_ctx, const void *content_data, size_t data_len,
+                       size_t asn1hdrlen);