]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg? Redefinition bug in CrtLibSupport.h.
authorLi, Zhihao <zhihao.li@intel.com>
Fri, 25 Mar 2022 07:40:46 +0000 (15:40 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 26 Mar 2022 10:40:04 +0000 (10:40 +0000)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3885

Parallel hash patch redefines uint_64 type in CrtLibSupport.h
which has been defined in openssl/include/openssl/e_os2.h.
CryptMd5.c including e_os2.h cause redefinition bug.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Signed-off-by: Zhihao Li <zhihao.li@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
CryptoPkg/Library/BaseCryptLib/Hash/CryptParallelHash.h
CryptoPkg/Library/Include/CrtLibSupport.h

index fe08d4928e8d6211177c92c1c60d66b771b6551d..dcfe200e5829faf46eed1c0bc72123635b91c7d1 100644 (file)
@@ -25,6 +25,8 @@ http://creativecommons.org/publicdomain/zero/1.0/
 \r
 #define KECCAK1600_WIDTH  1600\r
 \r
+typedef UINT64 uint64_t;\r
+\r
 //\r
 // This struct referring to m_sha3.c from opessl and modified its type name.\r
 //\r
index b76b140a7acf446395ab600b6a0c7697fbe12b97..75172b920b67868179438f7e0cac8164f04a327e 100644 (file)
@@ -111,7 +111,6 @@ typedef UINT8   u_char;
 typedef UINT32  uid_t;\r
 typedef UINT32  gid_t;\r
 typedef CHAR16  wchar_t;\r
-typedef UINT64  uint64_t;\r
 \r
 //\r
 // File operations are not required for EFI building,\r