]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CryptoPkg/OpensslLib: disable autoload-config for OpenSSL
authorXiaoyu Lu <xiaoyux.lu@intel.com>
Thu, 20 Jun 2019 05:55:13 +0000 (13:55 +0800)
committerJian J Wang <jian.j.wang@intel.com>
Fri, 21 Jun 2019 09:25:02 +0000 (17:25 +0800)
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>
CryptoPkg/Library/Include/openssl/opensslconf.h
CryptoPkg/Library/OpensslLib/process_files.pl

index 07fa2d3ce280b76a6d4668dee742abcf97381d5b..2b4d538e92d27382b574a8e2d5468b620fd84927 100644 (file)
@@ -115,6 +115,9 @@ extern "C" {
 #ifndef OPENSSL_NO_AUTOERRINIT
 # define OPENSSL_NO_AUTOERRINIT
 #endif
+#ifndef OPENSSL_NO_AUTOLOAD_CONFIG
+# define OPENSSL_NO_AUTOLOAD_CONFIG
+#endif
 #ifndef OPENSSL_NO_CAPIENG
 # define OPENSSL_NO_CAPIENG
 #endif
index e277108f0734f96210b13ee758a76e6e470ca1eb..671587efe197ae44940026f8ee38ecaffca6753a 100755 (executable)
@@ -53,6 +53,7 @@ BEGIN {
                 "no-async",\r
                 "no-autoalginit",\r
                 "no-autoerrinit",\r
+                "no-autoload-config",
                 "no-bf",\r
                 "no-blake2",\r
                 "no-camellia",\r