CryptoPkg/BaseCryptLib: drop BIO_* dummy functions

openssl 3.0 requires a functional BIO_sprintf() implementation.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Ard Biesheuvel <ardb@kernel.org>
Tested-by: Brian J. Johnson <brian.johnson@hpe.com>
Tested-by: Kenneth Lautner <klautner@microsoft.com>
This commit is contained in:
Gerd Hoffmann 2023-08-03 12:37:26 +08:00 committed by mergify[bot]
parent 63c8d160ae
commit 2a6dc1211f
2 changed files with 0 additions and 52 deletions

View File

@ -472,33 +472,6 @@ fwrite (
return 0;
}
//
// -- Dummy OpenSSL Support Routines --
//
int
BIO_printf (
void *bio,
const char *format,
...
)
{
return 0;
}
int
BIO_snprintf (
char *buf,
size_t n,
const char *format,
...
)
{
// Because the function does not actually print anything to buf, it returns -1 as error.
// Otherwise, the consumer may think that the buf is valid and parse the buffer.
return -1;
}
#ifdef __GNUC__
typedef

View File

@ -72,31 +72,6 @@ sscanf (
return 0;
}
//
// -- Dummy OpenSSL Support Routines --
//
int
BIO_printf (
void *bio,
const char *format,
...
)
{
return 0;
}
int
BIO_snprintf (
char *buf,
size_t n,
const char *format,
...
)
{
return 0;
}
uid_t
getuid (
void