From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.13471.1638547676099801209 for ; Fri, 03 Dec 2021 08:07:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OEAmnk02; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638547675; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=I9JTRp7TdG23dJSfpgyp2JhNeGlpVuRVM0MGjk6OPk4=; b=OEAmnk02fg7yNAwcgmeia2wDL5rrO3ZZpYqK5W7ZsI/TKnzIg5q48vT1vnI/1Ophnu26Ne ZDytfzLo8h/V575l3BT4KP5C35qX/EM7hAyk/fzabP10a6HGj787wo7A4buXUnDlxkwNMk vf1CVQDj8bOs4C5r95DiS7An5fYWxDQ= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-484-Rg-asrNnN6KOwsCuVcv-Mw-1; Fri, 03 Dec 2021 11:07:52 -0500 X-MC-Unique: Rg-asrNnN6KOwsCuVcv-Mw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 06387100CCC0; Fri, 3 Dec 2021 16:07:51 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.170]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8DDE4171FF; Fri, 3 Dec 2021 16:07:50 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C21661800093; Fri, 3 Dec 2021 17:07:48 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Guomin Jiang , Pawel Polawski , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Xiaoyu Lu , Gerd Hoffmann Subject: [PATCH 00/24] CryptoPkg/openssl: update openssl submodule to v3.0 Date: Fri, 3 Dec 2021 17:07:24 +0100 Message-Id: <20211203160748.866150-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Very first take on updating openssl to 3.0. Some hacks are in there still, only limited testing (no CI runs), so cleary not complete yet. Review comments and other hints are welcome nevertheless. take care, Gerd Gerd Hoffmann (24): CryptoPkg/openssl: update submodule to 3.0 CryptoPkg/openssl: process_files.pl: drop UefiAsm.conf CryptoPkg/openssl: process_files.pl: expand *.a CryptoPkg/openssl: process_files.pl: set api to 1.1.1 CryptoPkg/openssl: process_files.pl: change config header handling CryptoPkg/openssl: process_files.pl: provider headers CryptoPkg/openssl: process_files.pl: skip unused files CryptoPkg/openssl: process_files.pl: clean up when done CryptoPkg/openssl: process_files.pl: filter out crypto/buildinf.h CryptoPkg/openssl: update generated files CryptoPkg/BaseCryptLib: no openssl deprecation warnings please CryptoPkg/BaseCryptLib; adapt CryptSm3.c to openssl 3.0 changes. CryptoPkg/BaseCryptLib: add more bio print dummies CryptoPkg/openssl: adapt rand_pool.c to openssl 3.0 changes CryptoPkg/openssl: add dummy file store CryptoPkg/openssl: move compiler_flags to buildinf.c CryptoPkg/CrtLibSupport: add fcntl.h CryptoPkg/CrtLibSupport: add strstr() CryptoPkg/CrtLibSupport: add INT_MIN CryptoPkg/CrtLibSupport: add UINT_MAX CryptoPkg/CrtLibSupport: add MODULESDIR CryptoPkg/openssl: process_files.pl: copy generated der/*.c source files. CryptoPkg/openssl: add generated files der source files [hack] turn off -Werror CryptoPkg/Library/OpensslLib/OpensslLib.inf | 1305 +++++---- .../Library/OpensslLib/OpensslLibCrypto.inf | 1220 +++++--- .../Library/OpensslLib/OpensslLibX64.inf | 1 + .../Library/OpensslLib/OpensslLibX64Gcc.inf | 1 + .../Library/BaseCryptLib/InternalCryptLib.h | 2 + CryptoPkg/Library/Include/CrtLibSupport.h | 4 + CryptoPkg/Library/Include/crypto/bn_conf.h | 29 + CryptoPkg/Library/Include/crypto/dso_conf.h | 8 +- CryptoPkg/Library/Include/fcntl.h | 9 + CryptoPkg/Library/Include/openssl/asn1.h | 1128 +++++++ CryptoPkg/Library/Include/openssl/asn1t.h | 946 ++++++ CryptoPkg/Library/Include/openssl/bio.h | 884 ++++++ CryptoPkg/Library/Include/openssl/cmp.h | 592 ++++ CryptoPkg/Library/Include/openssl/cms.h | 493 ++++ CryptoPkg/Library/Include/openssl/conf.h | 211 ++ .../Library/Include/openssl/configuration.h | 286 ++ CryptoPkg/Library/Include/openssl/crmf.h | 227 ++ CryptoPkg/Library/Include/openssl/crypto.h | 556 ++++ CryptoPkg/Library/Include/openssl/ct.h | 573 ++++ CryptoPkg/Library/Include/openssl/err.h | 492 ++++ CryptoPkg/Library/Include/openssl/ess.h | 128 + CryptoPkg/Library/Include/openssl/fipskey.h | 36 + CryptoPkg/Library/Include/openssl/lhash.h | 288 ++ CryptoPkg/Library/Include/openssl/ocsp.h | 483 +++ .../Library/Include/openssl/opensslconf.h | 348 --- CryptoPkg/Library/Include/openssl/opensslv.h | 114 + CryptoPkg/Library/Include/openssl/pkcs12.h | 350 +++ CryptoPkg/Library/Include/openssl/pkcs7.h | 427 +++ CryptoPkg/Library/Include/openssl/safestack.h | 297 ++ CryptoPkg/Library/Include/openssl/srp.h | 285 ++ CryptoPkg/Library/Include/openssl/ssl.h | 2585 +++++++++++++++++ CryptoPkg/Library/Include/openssl/ui.h | 407 +++ CryptoPkg/Library/Include/openssl/x509.h | 1276 ++++++++ CryptoPkg/Library/Include/openssl/x509_vfy.h | 894 ++++++ CryptoPkg/Library/Include/openssl/x509v3.h | 1450 +++++++++ CryptoPkg/Library/Include/prov/bio.h | 32 + CryptoPkg/Library/Include/prov/blake2.h | 120 + CryptoPkg/Library/Include/prov/ciphercommon.h | 361 +++ .../Library/Include/prov/ciphercommon_aead.h | 47 + .../Library/Include/prov/ciphercommon_ccm.h | 100 + .../Library/Include/prov/ciphercommon_gcm.h | 129 + CryptoPkg/Library/Include/prov/der_digests.h | 160 + CryptoPkg/Library/Include/prov/der_dsa.h | 94 + CryptoPkg/Library/Include/prov/der_ec.h | 286 ++ CryptoPkg/Library/Include/prov/der_ecx.h | 50 + CryptoPkg/Library/Include/prov/der_rsa.h | 187 ++ CryptoPkg/Library/Include/prov/der_sm2.h | 37 + CryptoPkg/Library/Include/prov/der_wrap.h | 46 + CryptoPkg/Library/Include/prov/digestcommon.h | 123 + .../Library/Include/prov/implementations.h | 516 ++++ CryptoPkg/Library/Include/prov/kdfexchange.h | 24 + CryptoPkg/Library/Include/prov/macsignature.h | 30 + CryptoPkg/Library/Include/prov/md5_sha1.h | 36 + CryptoPkg/Library/Include/prov/names.h | 327 +++ CryptoPkg/Library/Include/prov/proverr.h | 27 + CryptoPkg/Library/Include/prov/provider_ctx.h | 40 + .../Library/Include/prov/provider_util.h | 138 + .../Library/Include/prov/providercommon.h | 24 + .../Library/Include/prov/securitycheck.h | 30 + CryptoPkg/Library/Include/prov/seeding.h | 41 + CryptoPkg/Library/OpensslLib/buildinf.h | 2 +- .../Library/BaseCryptLib/Hash/CryptSm3.c | 14 +- .../Library/BaseCryptLib/SysCall/CrtWrapper.c | 10 + .../OpensslLib/{buildinf.h => buildinf.c} | 3 +- .../Library/OpensslLib/der_digests_gen.c | 160 + CryptoPkg/Library/OpensslLib/der_rsa_gen.c | 174 ++ CryptoPkg/Library/OpensslLib/der_wrap_gen.c | 46 + CryptoPkg/Library/OpensslLib/ossl_store.c | 11 + CryptoPkg/Library/OpensslLib/rand_pool.c | 20 +- CryptoPkg/Library/OpensslLib/openssl | 2 +- CryptoPkg/Library/OpensslLib/process_files.pl | 79 +- 71 files changed, 20510 insertions(+), 1351 deletions(-) create mode 100644 CryptoPkg/Library/Include/crypto/bn_conf.h create mode 100644 CryptoPkg/Library/Include/fcntl.h create mode 100644 CryptoPkg/Library/Include/openssl/asn1.h create mode 100644 CryptoPkg/Library/Include/openssl/asn1t.h create mode 100644 CryptoPkg/Library/Include/openssl/bio.h create mode 100644 CryptoPkg/Library/Include/openssl/cmp.h create mode 100644 CryptoPkg/Library/Include/openssl/cms.h create mode 100644 CryptoPkg/Library/Include/openssl/conf.h create mode 100644 CryptoPkg/Library/Include/openssl/configuration.h create mode 100644 CryptoPkg/Library/Include/openssl/crmf.h create mode 100644 CryptoPkg/Library/Include/openssl/crypto.h create mode 100644 CryptoPkg/Library/Include/openssl/ct.h create mode 100644 CryptoPkg/Library/Include/openssl/err.h create mode 100644 CryptoPkg/Library/Include/openssl/ess.h create mode 100644 CryptoPkg/Library/Include/openssl/fipskey.h create mode 100644 CryptoPkg/Library/Include/openssl/lhash.h create mode 100644 CryptoPkg/Library/Include/openssl/ocsp.h delete mode 100644 CryptoPkg/Library/Include/openssl/opensslconf.h create mode 100644 CryptoPkg/Library/Include/openssl/opensslv.h create mode 100644 CryptoPkg/Library/Include/openssl/pkcs12.h create mode 100644 CryptoPkg/Library/Include/openssl/pkcs7.h create mode 100644 CryptoPkg/Library/Include/openssl/safestack.h create mode 100644 CryptoPkg/Library/Include/openssl/srp.h create mode 100644 CryptoPkg/Library/Include/openssl/ssl.h create mode 100644 CryptoPkg/Library/Include/openssl/ui.h create mode 100644 CryptoPkg/Library/Include/openssl/x509.h create mode 100644 CryptoPkg/Library/Include/openssl/x509_vfy.h create mode 100644 CryptoPkg/Library/Include/openssl/x509v3.h create mode 100644 CryptoPkg/Library/Include/prov/bio.h create mode 100644 CryptoPkg/Library/Include/prov/blake2.h create mode 100644 CryptoPkg/Library/Include/prov/ciphercommon.h create mode 100644 CryptoPkg/Library/Include/prov/ciphercommon_aead.h create mode 100644 CryptoPkg/Library/Include/prov/ciphercommon_ccm.h create mode 100644 CryptoPkg/Library/Include/prov/ciphercommon_gcm.h create mode 100644 CryptoPkg/Library/Include/prov/der_digests.h create mode 100644 CryptoPkg/Library/Include/prov/der_dsa.h create mode 100644 CryptoPkg/Library/Include/prov/der_ec.h create mode 100644 CryptoPkg/Library/Include/prov/der_ecx.h create mode 100644 CryptoPkg/Library/Include/prov/der_rsa.h create mode 100644 CryptoPkg/Library/Include/prov/der_sm2.h create mode 100644 CryptoPkg/Library/Include/prov/der_wrap.h create mode 100644 CryptoPkg/Library/Include/prov/digestcommon.h create mode 100644 CryptoPkg/Library/Include/prov/implementations.h create mode 100644 CryptoPkg/Library/Include/prov/kdfexchange.h create mode 100644 CryptoPkg/Library/Include/prov/macsignature.h create mode 100644 CryptoPkg/Library/Include/prov/md5_sha1.h create mode 100644 CryptoPkg/Library/Include/prov/names.h create mode 100644 CryptoPkg/Library/Include/prov/proverr.h create mode 100644 CryptoPkg/Library/Include/prov/provider_ctx.h create mode 100644 CryptoPkg/Library/Include/prov/provider_util.h create mode 100644 CryptoPkg/Library/Include/prov/providercommon.h create mode 100644 CryptoPkg/Library/Include/prov/securitycheck.h create mode 100644 CryptoPkg/Library/Include/prov/seeding.h copy CryptoPkg/Library/OpensslLib/{buildinf.h => buildinf.c} (50%) create mode 100644 CryptoPkg/Library/OpensslLib/der_digests_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/der_rsa_gen.c create mode 100644 CryptoPkg/Library/OpensslLib/der_wrap_gen.c -- 2.33.1