efi_loader: signature: move efi_guid_cert_type_pkcs7 to efi_signature.c
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Fri, 29 May 2020 06:41:18 +0000 (15:41 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 3 Jun 2020 15:19:19 +0000 (17:19 +0200)
commita4292eccfdc98b51d0200a6c912af237aeddd5c8
treed511171e6f7b9ac0472be7d0569399cf61bffae2
parent55af40a5781f1de574822745c9c76b3a928388cd
efi_loader: signature: move efi_guid_cert_type_pkcs7 to efi_signature.c

The global variable, efi_guid_cert_type_pkcs7, will also be used in
efi_image_loader.c in a succeeding patch so as to correctly handle
a signature type of authenticode in signed image.

Meanwhile, it is currently defined in efi_variable.c. Once some secure
storage solution for UEFI variables is introduced, efi_variable.c may
not always be compiled in.

So move the definition to efi_signature.c as a common place.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_signature.c
lib/efi_loader/efi_variable.c