diff options
| author | Gary Ching-Pang Lin <glin@suse.com> | 2015-07-15 16:33:32 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2015-07-28 11:46:38 -0400 |
| commit | a7f4b26cc35204165bd04e75c34e8e7aa2a87ecc (patch) | |
| tree | 509c0fa5845407046ca07af6f98926bb4b6a804e /Cryptlib/OpenSSL/crypto/err/err.c | |
| parent | 4ac84f8673eb7f3e5b98226aabe21f3e3111c7db (diff) | |
| download | efi-boot-shim-a7f4b26cc35204165bd04e75c34e8e7aa2a87ecc.tar.gz efi-boot-shim-a7f4b26cc35204165bd04e75c34e8e7aa2a87ecc.zip | |
Openssl: Add EFIAPI for ERR_add_error_vdata
Without declaring EFIAPI for ERR_add_error_vdata, shim would crash
while verifying the loaded image.
Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/err/err.c')
| -rw-r--r-- | Cryptlib/OpenSSL/crypto/err/err.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Cryptlib/OpenSSL/crypto/err/err.c b/Cryptlib/OpenSSL/crypto/err/err.c index f98cce6a..108b83a9 100644 --- a/Cryptlib/OpenSSL/crypto/err/err.c +++ b/Cryptlib/OpenSSL/crypto/err/err.c @@ -1085,7 +1085,11 @@ void ERR_add_error_data(int num, ...) va_end(args); } +#if defined(OPENSSL_SYS_UEFI) +void EFIAPI ERR_add_error_vdata(int num, va_list args) +#else void ERR_add_error_vdata(int num, va_list args) +#endif { int i, n, s; char *str, *p, *a; |
