]> git.proxmox.com Git - mirror_edk2.git/commit - CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/InternalCryptLib.h
CryptoPkg: Fix OpenSSL BN wordsize and OPENSSL_SYS_UEFI handling
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 29 Oct 2015 14:17:15 +0000 (14:17 +0000)
committerqlong <qlong@Edk2>
Thu, 29 Oct 2015 14:17:15 +0000 (14:17 +0000)
commit3b21958bf2a3eca22a0e3af4001df441a317f24a
tree8dcaf3530bb6a0d76c63044063560561515bf275
parent5121a764614a9b56aee34d9a278a36dfd95e1d4e
CryptoPkg: Fix OpenSSL BN wordsize and OPENSSL_SYS_UEFI handling

We were manually setting -DSIXTY_FOUR_BIT_LONG or -DTHIRTY_TWO_BIT on
the compiler command line when building OpensslLib itself, but not when
building BaseCryptLib.

But when building BaseCryptLib, we weren't setting OPENSSL_SYS_UEFI
*either*. This meant that *that* build was picking up the definition
from <openssl/opensslconf.h>, and was thus *different* to the version
the library was built with, in some cases.

So set OPENSSL_SYS_UEFI consistently in OpensslSupport.h and *also*
define either SIXTY_FOUR_BIT or THIRTY_TWO_BIT there too.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Qin Long <qin.long@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18706 6f19259b-4bc3-4df7-8a09-765794883524
CryptoPkg/Include/OpenSslSupport.h
CryptoPkg/Library/BaseCryptLib/InternalCryptLib.h
CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/InternalCryptLib.h
CryptoPkg/Library/OpensslLib/EDKII_openssl-1.0.2d.patch
CryptoPkg/Library/OpensslLib/OpensslLib.inf