audk/SecurityPkg
Gary Lin bac308be0c SecurityPkg/SecureBootConfigDxe: Declare EFIAPI for the ChooseFile handlers
The SecureBootConfig now uses ChooseFile() from FileExplorerLib
to select the certificates to be enrolled into PK, KEK, DB, DBX,
or DBT, and the corresponding handlers to get the content of the
file. Per the definition of CHOOSE_HANDLER, the handler must use
EFIAPI as the calling convention. However, the calling convention
was not specified the following handlers: UpdatePKFromFile(),
UpdateKEKFromFile(), UpdateDBFromFile(), UpdateDBXFromFile(), and
UpdateDBTFromFile(). When compiling the firmware with gcc, the
default calling convention is not compatible with EFIAPI, so the
handlers interpreted the argument the wrong way and passed the
wrong device path to UpdatePage(), and the system crashed when
the user tried to enroll a certificate into the key database.

This commit specifies the calling convention for those functions
so that gcc can generate the right code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gary Lin <glin@suse.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Dandan Bi <dandan.bi@intel.com>
2016-03-24 09:26:46 +01:00
..
Application/RngTest SecurityPkg: Convert all .uni files to utf-8 2015-12-15 04:58:32 +00:00
Hash2DxeCrypto SecurityPkg: Convert all .uni files to utf-8 2015-12-15 04:58:32 +00:00
Include SecurityPkg/Tpm12CommandLib.h: Add TPM 1.2 commands used by TCG modules 2016-01-21 19:29:56 +00:00
Library SecurityPkg: Clear LocalAuthSession content after use. 2016-03-11 12:51:43 +08:00
Pkcs7Verify/Pkcs7VerifyDxe SecurityPkg: Convert all .uni files to utf-8 2015-12-15 04:58:32 +00:00
RandomNumberGenerator/RngDxe SecurityPkg: Convert all .uni files to utf-8 2015-12-15 04:58:32 +00:00
Tcg SecurityPkg: Tcg2Smm: Change TPM2.0 MMIO range attribute 2016-02-29 09:37:13 +08:00
UserIdentification SecurityPkg: Convert all .uni files to utf-8 2015-12-15 04:58:32 +00:00
VariableAuthenticated SecurityPkg/SecureBootConfigDxe: Declare EFIAPI for the ChooseFile handlers 2016-03-24 09:26:46 +01:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
SecurityPkg.dec SecurityPkg: AuthVariableLib: Add new cert database for volatile time based Auth variable 2016-02-02 01:02:31 +00:00
SecurityPkg.dsc SecurityPkg: Add FileExplorerLib.inf to the dsc file 2016-02-26 16:52:50 +08:00
SecurityPkg.uni SecurityPkg: TcgDxe,Tcg2Dxe,TrEEDxe: New PCD for TCG event log and TCG2 final event log area 2016-01-12 00:37:02 +00:00
SecurityPkgExtra.uni SecurityPkg: Convert all .uni files to utf-8 2015-12-15 04:58:32 +00:00