From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Thu, 09 May 2019 04:32:09 -0700 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8E8B1307D987; Thu, 9 May 2019 11:32:08 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-234.rdu2.redhat.com [10.10.120.234]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7FFA4546EF; Thu, 9 May 2019 11:32:07 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH v2 1/6] CryptoPkg/OpensslLib: Modify process_files.pl for upgrading OpenSSL To: devel@edk2.groups.io, xiaoyux.lu@intel.com Cc: Jian J Wang , Ting Ye References: <1557379429-7527-1-git-send-email-xiaoyux.lu@intel.com> From: "Laszlo Ersek" Message-ID: <7453a968-9dd6-e1de-fc55-a7479e53165f@redhat.com> Date: Thu, 9 May 2019 13:32:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1557379429-7527-1-git-send-email-xiaoyux.lu@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 09 May 2019 11:32:08 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 05/09/19 07:23, Xiaoyu lu wrote: > 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). (1) Please insert the following sentence here (no need to repost just for this; can be done before pushing): ---- This OpenSSL change was introduced in commit 8389ec4b4950 ("Add --with-rand-seed", 2017-07-22). ---- with that: Reviewed-by: Laszlo Ersek Thanks Laszlo > So add --with-rand-seed=none to process_files.pl. > > Cc: Jian J Wang > Cc: Ting Ye > Signed-off-by: Xiaoyu Lu > --- > CryptoPkg/Library/OpensslLib/process_files.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/CryptoPkg/Library/OpensslLib/process_files.pl b/CryptoPkg/Library/OpensslLib/process_files.pl > index f6e1f43..6c136cc 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"; > >