CryptoPkg/OpensslLib: Modify process_files.pl for upgrading OpenSSL
authorXiaoyu Lu <xiaoyux.lu@intel.com>
Wed, 29 May 2019 18:40:30 +0000 (18:40 +0000)
committerJian J Wang <jian.j.wang@intel.com>
Mon, 3 Jun 2019 00:28:00 +0000 (08:28 +0800)
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1089

OpenSSL configure mechanism use --with-rand-seed=xxx option to configure
random number generation.

OpenSSL_1_1_0j(74f2d9c1ec5f5510e1d3da5a9f03c28df0977762)
we use default --with-rand-seed=os option to for building it.

But OpenSSL_1_1_1b(50eaac9f3337667259de725451f201e784599687)
only support seeding NONE for UEFI(rand_unix.c line 93).

This OpenSSL change was introduced in commit
8389ec4b4950 ("Add --with-rand-seed", 2017-07-22).

So add --with-rand-seed=none to process_files.pl.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Ting Ye <ting.ye@intel.com>
Signed-off-by: Xiaoyu Lu <xiaoyux.lu@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Gary Lin <glin@suse.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
CryptoPkg/Library/OpensslLib/process_files.pl

index f6e1f43..6c136cc 100755 (executable)
@@ -90,7 +90,10 @@ BEGIN {
                 "no-threads",\r
                 "no-ts",\r
                 "no-ui",\r
-                "no-whirlpool"\r
+                "no-whirlpool",\r
+                # OpenSSL1_1_1b doesn't support default rand-seed-os for UEFI\r
+                # UEFI only support --with-rand-seed=none\r
+                "--with-rand-seed=none"\r
                 ) == 0 ||\r
                     die "OpenSSL Configure failed!\n";\r
 \r