diff options
| author | Peter Jones <pjones@redhat.com> | 2021-03-09 12:16:23 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-10 15:54:20 -0500 |
| commit | 78809820b5a3f79a0bfbec00e630e40011acf4ec (patch) | |
| tree | faa20391b132a2749a978ab60bebb38b457c3807 /Cryptlib/OpenSSL/crypto/bio | |
| parent | f033a1da9f4c3acf7e3dfef906d01e348b6fcf42 (diff) | |
| download | efi-boot-shim-78809820b5a3f79a0bfbec00e630e40011acf4ec.tar.gz efi-boot-shim-78809820b5a3f79a0bfbec00e630e40011acf4ec.zip | |
Fix Cryptlib's va_* definitions.
Some time ago, commit e571428e212 ("Update to openssl to 1.0.2e")
changed the way we define the va_* (and VA_*) functions and macros.
Unfortunately, it only changed for some parts of the tree, and the
different parts of the tree need to both call each other and use the
same types in all cases. Additionally, they need to all be able to call
gnu-efi functions such as VPrint, which means they need the same va_list
type definitions everywhere.
This partially reverts that patch, adding EFIAPI back and unsetting
NO_BUILTIN_VA_FUNCS everywhere.
Diffstat (limited to 'Cryptlib/OpenSSL/crypto/bio')
| -rw-r--r-- | Cryptlib/OpenSSL/crypto/bio/b_print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Cryptlib/OpenSSL/crypto/bio/b_print.c b/Cryptlib/OpenSSL/crypto/bio/b_print.c index 2d303ee8..34c8fca7 100644 --- a/Cryptlib/OpenSSL/crypto/bio/b_print.c +++ b/Cryptlib/OpenSSL/crypto/bio/b_print.c @@ -797,7 +797,7 @@ doapr_outch(char **sbuffer, /***************************************************************************/ -int BIO_printf(BIO *bio, const char *format, ...) +int EFIAPI BIO_printf(BIO *bio, const char *format, ...) { va_list args; int ret; @@ -810,7 +810,7 @@ int BIO_printf(BIO *bio, const char *format, ...) return (ret); } -int BIO_vprintf(BIO *bio, const char *format, va_list args) +int EFIAPI BIO_vprintf(BIO *bio, const char *format, va_list args) { int ret; size_t retlen; @@ -845,7 +845,7 @@ int BIO_vprintf(BIO *bio, const char *format, va_list args) * closely related to BIO_printf, and we need *some* name prefix ... (XXX the * function should be renamed, but to what?) */ -int BIO_snprintf(char *buf, size_t n, const char *format, ...) +int EFIAPI BIO_snprintf(char *buf, size_t n, const char *format, ...) { va_list args; int ret; @@ -858,7 +858,7 @@ int BIO_snprintf(char *buf, size_t n, const char *format, ...) return (ret); } -int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) +int EFIAPI BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) { size_t retlen; int truncated; |
