audk/CryptoPkg/Library/BaseCryptLibRuntimeCryptPro...
David Woodhouse 3b21958bf2 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
2015-10-29 14:17:15 +00:00
..
Cipher Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
Hash Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
Hmac Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
Pem Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
Pk CryptoPkg: Make the function headers of Pkcs7GetAttachedContent follow Doxygen. 2015-07-14 02:24:22 +00:00
Rand Add interfaces to several library instances of BaseCryptLib. 2012-07-18 09:32:05 +00:00
BaseCryptLibRuntimeCryptProtocol.inf CryptoPkg: INF/DEC file updates to EDK II packages 2014-08-28 05:50:45 +00:00
BaseCryptLibRuntimeCryptProtocol.uni CryptoPkg: Convert non DOS format files to DOS format 2014-09-03 08:56:12 +00:00
InternalCryptLib.h CryptoPkg: Fix OpenSSL BN wordsize and OPENSSL_SYS_UEFI handling 2015-10-29 14:17:15 +00:00
RuntimeDxeIpfCryptLib.c Fix issue that RsaPkcs1Verify() may not work in PEI phase. 2012-11-22 05:07:22 +00:00