]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/Include/CrtLibSupport.h
CryptoPkg: Upgrade OpenSSL to 1.1.1b
[mirror_edk2.git] / CryptoPkg / Library / Include / CrtLibSupport.h
index feaf58b0c79a84bd499329aec1e3f99f148e0816..5806f50f7485101dad8bb9da18306aa8747b3928 100644 (file)
@@ -2,14 +2,8 @@
   Root include file of C runtime library to support building the third-party\r
   cryptographic library.\r
 \r
-Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -26,6 +20,17 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #define MAX_STRING_SIZE  0x1000\r
 \r
+//\r
+// We already have "no-ui" in out Configure invocation.\r
+// but the code still fails to compile.\r
+// Ref:  https://github.com/openssl/openssl/issues/8904\r
+//\r
+// This is defined in CRT library(stdio.h).\r
+//\r
+#ifndef BUFSIZ\r
+#define BUFSIZ  8192\r
+#endif\r
+\r
 //\r
 // OpenSSL relies on explicit configuration for word size in crypto/bn,\r
 // but we want it to be automatically inferred from the target. So we\r
@@ -161,6 +166,7 @@ uid_t          getuid      (void);
 uid_t          geteuid     (void);\r
 gid_t          getgid      (void);\r
 gid_t          getegid     (void);\r
+int            issetugid   (void);\r
 void           qsort       (void *, size_t, size_t, int (*)(const void *, const void *));\r
 char           *getenv     (const char *);\r
 char           *secure_getenv (const char *);\r