mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-06-23 02:47:59 +00:00

OpenSSL changes quite a bit of the key validation, and most of the keys I can find in the wild aren't marked as trusted by the new checker. Intel noticed this too: https://github.com/vathpela/edk2/commit/f536d7c3ed but instead of fixing the compatibility error, they switched their test data to match the bug. So that's pretty broken. For now, I'm reverting OpenSSL 1.1.0e, because we need those certs in the wild to work. This reverts commit513cbe2aea
. This reverts commite9cc33d6f2
. This reverts commit80d49f758e
. This reverts commit9bc647e2b2
. This reverts commitae75df6232
. This reverts commite883479f35
. This reverts commit97469449fd
. This reverts commite39692647f
. This reverts commit0f3dfc01e2
. This reverts commit4da6ac8195
. This reverts commitd064bd7eef
. This reverts commit9bc86cfd6f
. This reverts commitab9a05a10f
. Signed-off-by: Peter Jones <pjones@redhat.com>
37 lines
986 B
C
37 lines
986 B
C
#include <openssl/bio.h>
|
|
|
|
#if BIO_FLAGS_UPLINK==0
|
|
/* Shortcut UPLINK calls on most platforms... */
|
|
# define UP_stdin stdin
|
|
# define UP_stdout stdout
|
|
# define UP_stderr stderr
|
|
# define UP_fprintf fprintf
|
|
# define UP_fgets fgets
|
|
# define UP_fread fread
|
|
# define UP_fwrite fwrite
|
|
# undef UP_fsetmod
|
|
# define UP_feof feof
|
|
# define UP_fclose fclose
|
|
|
|
# define UP_fopen fopen
|
|
# define UP_fseek fseek
|
|
# define UP_ftell ftell
|
|
# define UP_fflush fflush
|
|
# define UP_ferror ferror
|
|
# ifdef _WIN32
|
|
# define UP_fileno _fileno
|
|
# define UP_open _open
|
|
# define UP_read _read
|
|
# define UP_write _write
|
|
# define UP_lseek _lseek
|
|
# define UP_close _close
|
|
# else
|
|
# define UP_fileno fileno
|
|
# define UP_open open
|
|
# define UP_read read
|
|
# define UP_write write
|
|
# define UP_lseek lseek
|
|
# define UP_close close
|
|
# endif
|
|
#endif
|