From nobody Mon May 6 13:36:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+49398+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+49398+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1571845249; cv=none; d=zoho.com; s=zohoarc; b=O3EkFEg7R9NGhIf7tAZy8GuBJNoNPbb5AAIPEd5MmMoGwgWpF4Y2E/nepMUaQaF9KLaohrGHwkHgcgT5ZmmmHpfYbZa+a/+cmk22v0w7wdRPgKF5kmc9v0IbMXHymtxoMAaSsbYLBIIA7HWyRkiXS3ZgdkPDf9zTY+sMqImMzVk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571845249; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=CW6JPJwfrqqTsQtIIaEMvtPrtu0kqF+d/yaBq0o4tUM=; b=fr1XiHflwFKPrGvpo/P7vsYcKPuBcwFrdRjGgZIF1IUZmGJLhQG5ELlB27RS/hhwt1tteDOzBKX7BCMopnx5+Pqy1ESz1Lnaet5Cqlrq/EdpU9PUZAFeCstLtmCT8BaueO+/tXPOoUu2hIGOdJtGmkvJ6HSAVsheVDUvTzwUB3I= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+49398+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1571845249494262.48312797853816; Wed, 23 Oct 2019 08:40:49 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id d4lXYY1788612x7ZPhtwEd7m; Wed, 23 Oct 2019 08:40:48 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.7576.1571845248040858036 for ; Wed, 23 Oct 2019 08:40:48 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Oct 2019 08:40:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,221,1569308400"; d="scan'208";a="202031925" X-Received: from shenglei-dev.ccr.corp.intel.com ([10.239.158.52]) by orsmga006.jf.intel.com with ESMTP; 23 Oct 2019 08:40:46 -0700 From: "Zhang, Shenglei" To: devel@edk2.groups.io Cc: Jian J Wang , Xiaoyu Lu , Liming Gao Subject: [edk2-devel] [PATCH v2] CryptoPkg: Upgrade OpenSSL to 1.1.1d Date: Wed, 23 Oct 2019 22:47:38 +0800 Message-Id: <20191023144738.24856-1-shenglei.zhang@intel.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,shenglei.zhang@intel.com X-Gm-Message-State: VwvVor5XrYrqBaOGFrRuBTV1x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1571845248; bh=wce8iqwDxJ3dGMybg5L/3SizFKtRe3WsuopJtSJHlls=; h=Cc:Date:From:Reply-To:Subject:To; b=GFXUSzNHlwSwy7qD8MM7RhQhLCd7itYsJa7kBnpBJBIu66kD5DaaxW2nIgOuYmAGr24 IxbIowHjjjmZ5N+DsD1nnVOyB0rWgdXnAxzxAddaZJtqJBqRKP8/23LpGD4qAjdnCoFeT EqG6BtZs2O3qn/pRSbnroHB4WcYuJeQBmoA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Update openssl from 1.1.1b to 1.1.1d. Something needs to be noticed is that, there is a bug existing in the released 1_1_1d version(894da2fb7ed5d314ee5c2fc9fd2d9b8b74111596), which causes build failure. So we switch the code base to a usable version, which is 2 commits later than the stable tag. Now we use the version c3656cc594daac8167721dde7220f0e59ae146fc. This log is to fix the build failure. https://bugzilla.tianocore.org/show_bug.cgi?id=3D2226 Besides, the absense of "DSO_NONE" in dso_conf.h causes build failure in OvmfPkg. So update process_files.pl to generate information from "crypto/include/internal/dso_conf.h.in". This patch has been tested on Kaby Lake platform. Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Liming Gao Signed-off-by: Shenglei Zhang --- v2: Revert the changes in OpensslLib.inf and OpensslLibCrypto.inf. The removed header files in INF are added at 8906f076d... to clean warning message. CryptoPkg/Library/Include/internal/dso_conf.h | 16 ++++++++++++++++ CryptoPkg/Library/OpensslLib/openssl | 2 +- CryptoPkg/Library/OpensslLib/process_files.pl | 13 ++++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/CryptoPkg/Library/Include/internal/dso_conf.h b/CryptoPkg/Libr= ary/Include/internal/dso_conf.h index e69de29bb2d1..43c891588bc2 100644 --- a/CryptoPkg/Library/Include/internal/dso_conf.h +++ b/CryptoPkg/Library/Include/internal/dso_conf.h @@ -0,0 +1,16 @@ +/* WARNING: do not edit! */ +/* Generated from crypto/include/internal/dso_conf.h.in */ +/* + * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the OpenSSL license (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +#ifndef HEADER_DSO_CONF_H +# define HEADER_DSO_CONF_H +# define DSO_NONE +# define DSO_EXTENSION ".so" +#endif diff --git a/CryptoPkg/Library/OpensslLib/openssl b/CryptoPkg/Library/Opens= slLib/openssl index 50eaac9f3337..c3656cc594da 160000 --- a/CryptoPkg/Library/OpensslLib/openssl +++ b/CryptoPkg/Library/OpensslLib/openssl @@ -1 +1 @@ -Subproject commit 50eaac9f3337667259de725451f201e784599687 +Subproject commit c3656cc594daac8167721dde7220f0e59ae146fc diff --git a/CryptoPkg/Library/OpensslLib/process_files.pl b/CryptoPkg/Libr= ary/OpensslLib/process_files.pl index e13c0acb4dda..f35bcc8d0f83 100755 --- a/CryptoPkg/Library/OpensslLib/process_files.pl +++ b/CryptoPkg/Library/OpensslLib/process_files.pl @@ -106,6 +106,14 @@ BEGIN { ) =3D=3D 0 || die "Failed to generate opensslconf.h!\n"; =20 + # Generate dso_conf.h per config data + system( + "perl -I. -Mconfigdata util/dofile.pl " . + "crypto/include/internal/dso_conf.h.in " . + "> include/internal/dso_conf.h" + ) =3D=3D 0 || + die "Failed to generate dso_conf.h!\n"; + chdir($basedir) || die "Cannot change to base directory \"" . $basedir . "\""; =20 @@ -221,12 +229,15 @@ rename( $new_inf_file, $inf_file ) || print "Done!"; =20 # -# Copy opensslconf.h generated from OpenSSL Configuration +# Copy opensslconf.h and dso_conf.h generated from OpenSSL Configuration # print "\n--> Duplicating opensslconf.h into Include/openssl ... "; copy($OPENSSL_PATH . "/include/openssl/opensslconf.h", $OPENSSL_PATH . "/../../Include/openssl/") || die "Cannot copy opensslconf.h!"; +copy($OPENSSL_PATH . "/include/internal/dso_conf.h", + $OPENSSL_PATH . "/../../Include/internal/") || + die "Cannot copy dso_conf.h!"; print "Done!\n"; =20 print "\nProcessing Files Done!\n"; --=20 2.18.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49398): https://edk2.groups.io/g/devel/message/49398 Mute This Topic: https://groups.io/mt/36495805/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-