Commit a7f4b26c authored by Gary Ching-Pang Lin's avatar Gary Ching-Pang Lin Committed by Peter Jones

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: default avatarGary Ching-Pang Lin <glin@suse.com>
parent 4ac84f86
......@@ -352,7 +352,11 @@ void EFIAPI ERR_add_error_data(int num, ...);
void ERR_add_error_data(int num, ...);
#endif
#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
void ERR_load_strings(int lib, ERR_STRING_DATA str[]);
void ERR_unload_strings(int lib, ERR_STRING_DATA str[]);
void ERR_load_ERR_strings(void);
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment