From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.6777.1652167156561604354 for ; Tue, 10 May 2022 00:19:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=gWztGW8P; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: yi1.li@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652167156; x=1683703156; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=sS0UI+r8xzCtOZnf9dLDkso2nmy88m8yCZUf04Nj6mk=; b=gWztGW8Pzd1jFEil0OLbdKncCRewnVC5uzo/zm1xdF6hniFAOEDAOqmP 4xGON6VeflRrS3ou/7qFcITlQ6cvGyeX3H3rv/SmYd6PL07nobIoUCBNU L8N5nIiiFmVkZcscsCZpqRDHuzaWqawxtc1VwKlIDSvEYZyU9m2jmXh5N QHYe5Fu/sDhSREUrPK/QEZiYJhpLNzn2kHrKpXO0+rF0Jo5/3Jr8LxeTW I80hNb5TTnYgH0B4PbHl6m0B42Ybc8ZbJ4y+XckTyF9q7jiGFT/a9pcSK rzidbrkTHXYhVIKvocC4dshdZdk51aMaEyMF6H/16RAMdsRU8SWHaGLQZ g==; X-IronPort-AV: E=McAfee;i="6400,9594,10342"; a="294517523" X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="294517523" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 00:19:15 -0700 X-IronPort-AV: E=Sophos;i="5.91,213,1647327600"; d="scan'208";a="593355203" Received: from shwdejointd178.ccr.corp.intel.com ([10.239.153.103]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 00:19:12 -0700 From: "yi1 li" To: devel@edk2.groups.io Cc: Yi Li , Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang , Gerd Hoffmann Subject: [PATCH V4 0/5] CryptoPkg/openssl: Enable EC conditionally. Date: Tue, 10 May 2022 15:19:02 +0800 Message-Id: X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Recommend from Gerd: (2) Keep the EC config option, but update process_files.pl to automatically add the PcdEcEnabled config option handling to the files it generates. This patch set does (2). When remove 'no-ec' from openssl configure list, will automatically remove 'OPENSSL_NO_EC', 'OPENSSL_NO_ECDH', 'OPENSSL_NO_ECDSA', 'OPENSSL_NO_TLS1_3', 'OPENSSL_NO_SM2' from header, and add '/ec/.', '/sm2/.' files to INF files. Signed-off-by: Yi Li Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Cc: Gerd Hoffmann Yi Li (5): CryptoPkg: Rename PCD about openssl EC configuration CryptoPkg: Separate auto-generated openssl config and edk2 openssl config CryptoPkg: Update process_files.pl to automatically add PCD config option CryptoPkg/openssl: update generated files CryptoPkg/openssl: disable codestyle checks for generated files CryptoPkg/CryptoPkg.ci.yaml | 14 +- CryptoPkg/CryptoPkg.dec | 2 +- .../Library/BaseCryptLib/BaseCryptLib.inf | 2 +- .../Library/BaseCryptLib/PeiCryptLib.inf | 2 +- .../Library/BaseCryptLib/RuntimeCryptLib.inf | 2 +- .../Library/BaseCryptLib/SmmCryptLib.inf | 2 +- .../BaseCryptLib/UnitTestHostBaseCryptLib.inf | 2 +- CryptoPkg/Library/Include/crypto/dso_conf.h | 7 +- .../Library/Include/openssl/opensslconf.h | 348 +----------------- .../Include/openssl/opensslconf_generated.h | 333 +++++++++++++++++ CryptoPkg/Library/OpensslLib/OpensslLib.inf | 98 ++--- .../Library/OpensslLib/OpensslLibCrypto.inf | 98 ++--- CryptoPkg/Library/OpensslLib/process_files.pl | 77 +++- CryptoPkg/Library/TlsLib/TlsLib.inf | 2 +- 14 files changed, 552 insertions(+), 437 deletions(-) create mode 100644 CryptoPkg/Library/Include/openssl/opensslconf_generated.h -- 2.31.1.windows.1