diff options
author | Xiaoyu Lu <xiaoyux.lu@intel.com> | 2019-05-29 18:40:30 +0000 |
---|---|---|
committer | Jian J Wang <jian.j.wang@intel.com> | 2019-06-03 08:28:00 +0800 |
commit | 6fcc3d68eb02aa798ef572c94867a03d0c1fedf2 (patch) | |
tree | 9c9e489a88bd0c343e85a7a64e1cce34a1fc7cd8 /CryptoPkg/Library/OpensslLib/process_files.pl | |
parent | 371e7001e8d5753365f3b6cd05b17e32be62b4f3 (diff) | |
download | edk2-6fcc3d68eb02aa798ef572c94867a03d0c1fedf2.tar.gz edk2-6fcc3d68eb02aa798ef572c94867a03d0c1fedf2.tar.bz2 edk2-6fcc3d68eb02aa798ef572c94867a03d0c1fedf2.zip |
CryptoPkg/OpensslLib: Modify process_files.pl for upgrading OpenSSL
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>
Diffstat (limited to 'CryptoPkg/Library/OpensslLib/process_files.pl')
-rwxr-xr-x | CryptoPkg/Library/OpensslLib/process_files.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CryptoPkg/Library/OpensslLib/process_files.pl b/CryptoPkg/Library/OpensslLib/process_files.pl index f6e1f43641..6c136cca09 100755 --- a/CryptoPkg/Library/OpensslLib/process_files.pl +++ b/CryptoPkg/Library/OpensslLib/process_files.pl @@ -90,7 +90,10 @@ BEGIN { "no-threads",
"no-ts",
"no-ui",
- "no-whirlpool"
+ "no-whirlpool",
+ # OpenSSL1_1_1b doesn't support default rand-seed-os for UEFI
+ # UEFI only support --with-rand-seed=none
+ "--with-rand-seed=none"
) == 0 ||
die "OpenSSL Configure failed!\n";
|