From 4d1c95f9e0a48358a829c00a97bba58fa83242b9 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 12 Dec 2024 23:22:50 +0100 Subject: [PATCH] CryptoPkg: revert BUFSIZ macro definition from commit 456dd8b99f00 OpenSSL ticket has been fixed in OpenSSL commit 2e9d61ecd81a ("crypto/evp/evp_key.c: #define BUFSIZ if doesn't #define it", 2019-05-27). We should simplify "CryptoPkg/Library/Include/CrtLibSupport.h" and back out the change made to that file by edk2 commit 456dd8b99f00 ("CryptoPkg: Upgrade OpenSSL to 1.1.1b", 2019-06-03). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1897 Signed-off-by: Laszlo Ersek --- CryptoPkg/Library/Include/CrtLibSupport.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/Include/CrtLibSupport.h index cd51e197e74d..b43bfd41b194 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -24,17 +24,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define MAX_STRING_SIZE 0x1000 -// -// We already have "no-ui" in out Configure invocation. -// but the code still fails to compile. -// Ref: https://github.com/openssl/openssl/issues/8904 -// -// This is defined in CRT library(stdio.h). -// -#ifndef BUFSIZ -#define BUFSIZ 8192 -#endif - // // OpenSSL relies on explicit configuration for word size in crypto/bn, // but we want it to be automatically inferred from the target. So we