lib/crypto, efi_loader: move some headers to include/crypto
Pkcs7_parse.h and x509_parser.h are used in UEFI subsystem, in particular, secure boot. So move them to include/crypto to avoid relative paths. Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Don't include include x509_parser.h twice. Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
7b8b63fb8e
commit
e3f5c9cb0f
@ -20,7 +20,11 @@
|
||||
#include <linux/err.h>
|
||||
#include <linux/oid_registry.h>
|
||||
#include <crypto/public_key.h>
|
||||
#ifdef __UBOOT__
|
||||
#include <crypto/pkcs7_parser.h>
|
||||
#else
|
||||
#include "pkcs7_parser.h"
|
||||
#endif
|
||||
#include "pkcs7.asn1.h"
|
||||
|
||||
MODULE_DESCRIPTION("PKCS#7 parser");
|
||||
|
@ -18,7 +18,11 @@
|
||||
#include <linux/string.h>
|
||||
#endif
|
||||
#include <crypto/public_key.h>
|
||||
#ifdef __UBOOT__
|
||||
#include <crypto/x509_parser.h>
|
||||
#else
|
||||
#include "x509_parser.h"
|
||||
#endif
|
||||
#include "x509.asn1.h"
|
||||
#include "x509_akid.asn1.h"
|
||||
|
||||
|
@ -16,15 +16,17 @@
|
||||
#include <linux/module.h>
|
||||
#endif
|
||||
#include <linux/kernel.h>
|
||||
#ifndef __UBOOT__
|
||||
#ifdef __UBOOT__
|
||||
#include <crypto/x509_parser.h>
|
||||
#else
|
||||
#include <linux/slab.h>
|
||||
#include <keys/asymmetric-subtype.h>
|
||||
#include <keys/asymmetric-parser.h>
|
||||
#include <keys/system_keyring.h>
|
||||
#include <crypto/hash.h>
|
||||
#include "asymmetric_keys.h"
|
||||
#endif
|
||||
#include "x509_parser.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Set up the signature parameters in an X.509 certificate. This involves
|
||||
|
@ -13,7 +13,7 @@
|
||||
#include <malloc.h>
|
||||
#include <pe.h>
|
||||
#include <sort.h>
|
||||
#include "../lib/crypto/pkcs7_parser.h"
|
||||
#include "crypto/pkcs7_parser.h"
|
||||
|
||||
const efi_guid_t efi_global_variable_guid = EFI_GLOBAL_VARIABLE_GUID;
|
||||
const efi_guid_t efi_guid_device_path = EFI_DEVICE_PATH_PROTOCOL_GUID;
|
||||
|
@ -10,11 +10,11 @@
|
||||
#include <image.h>
|
||||
#include <hexdump.h>
|
||||
#include <malloc.h>
|
||||
#include <crypto/pkcs7_parser.h>
|
||||
#include <linux/compat.h>
|
||||
#include <linux/oid_registry.h>
|
||||
#include <u-boot/rsa.h>
|
||||
#include <u-boot/sha256.h>
|
||||
#include "../lib/crypto/pkcs7_parser.h"
|
||||
|
||||
const efi_guid_t efi_guid_image_security_database =
|
||||
EFI_IMAGE_SECURITY_DATABASE_GUID;
|
||||
|
@ -12,9 +12,9 @@
|
||||
#include <malloc.h>
|
||||
#include <rtc.h>
|
||||
#include <search.h>
|
||||
#include <crypto/pkcs7_parser.h>
|
||||
#include <linux/compat.h>
|
||||
#include <u-boot/crc.h>
|
||||
#include "../lib/crypto/pkcs7_parser.h"
|
||||
|
||||
enum efi_secure_mode {
|
||||
EFI_MODE_SETUP,
|
||||
|
@ -13,10 +13,10 @@
|
||||
#include <test/ut.h>
|
||||
|
||||
#ifdef CONFIG_PKCS7_MESSAGE_PARSER
|
||||
#include "../../lib/crypto/pkcs7_parser.h"
|
||||
#include <crypto/pkcs7_parser.h>
|
||||
#else
|
||||
#ifdef CONFIG_X509_CERTIFICATE_PARSER
|
||||
#include "../../lib/crypto/x509_parser.h"
|
||||
#include <crypto/x509_parser.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user