mirror of https://github.com/acidanthera/audk.git
CryptoPkg/OpensslLib: disable autoload-config for OpenSSL
Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=1926 This problem was found by Rebecca Cran <rebecca@bluestop.org>. REF: https://edk2.groups.io/g/devel/topic/32100684 OpenSSL will automatically load a system config file which configures default ssl options. In UEFI, It will cause TlsInitialize failed without OPENSSL_INIT_NO_LOAD_CONFIG flag. we don't use this feature, So disable it. Re-run process_files.py to generate OpensslLib[Crypto].inf files. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Xiaoyu Lu <xiaoyux.lu@intel.com> Reviewed-by: Rebecca Cran <rebecca@bluestop.org> Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
parent
90e8f13d51
commit
b86fbe1f98
|
@ -115,6 +115,9 @@ extern "C" {
|
||||||
#ifndef OPENSSL_NO_AUTOERRINIT
|
#ifndef OPENSSL_NO_AUTOERRINIT
|
||||||
# define OPENSSL_NO_AUTOERRINIT
|
# define OPENSSL_NO_AUTOERRINIT
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef OPENSSL_NO_AUTOLOAD_CONFIG
|
||||||
|
# define OPENSSL_NO_AUTOLOAD_CONFIG
|
||||||
|
#endif
|
||||||
#ifndef OPENSSL_NO_CAPIENG
|
#ifndef OPENSSL_NO_CAPIENG
|
||||||
# define OPENSSL_NO_CAPIENG
|
# define OPENSSL_NO_CAPIENG
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -53,6 +53,7 @@ BEGIN {
|
||||||
"no-async",
|
"no-async",
|
||||||
"no-autoalginit",
|
"no-autoalginit",
|
||||||
"no-autoerrinit",
|
"no-autoerrinit",
|
||||||
|
"no-autoload-config",
|
||||||
"no-bf",
|
"no-bf",
|
||||||
"no-blake2",
|
"no-blake2",
|
||||||
"no-camellia",
|
"no-camellia",
|
||||||
|
|
Loading…
Reference in New Issue