Skip to content

Commit

Permalink
CryptoPkg: revert BUFSIZ macro definition from commit 456dd8b
Browse files Browse the repository at this point in the history
OpenSSL ticket <openssl/openssl#8904> has been
fixed in OpenSSL commit 2e9d61ecd81a ("crypto/evp/evp_key.c: #define
BUFSIZ if <stdio.h> 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 456dd8b ("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 <[email protected]>
  • Loading branch information
lersek committed Dec 12, 2024
1 parent 3022bab commit 4d1c95f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions CryptoPkg/Library/Include/CrtLibSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d1c95f

Please sign in to comment.