From nobody Wed May 15 20:29:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88621+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88621+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649416588; cv=none; d=zohomail.com; s=zohoarc; b=c5XZvGi3iaEB6Mx1pNKgCpoRkVuYO8NsefIz7/MleLB1eK7BLWpyWK6widWnnK0Q2Wdpb4t5JQD7KSzP0RvVrds8r35YID7AhfmtyPx6CCsKsXsLIiK9M31HMI68oFcmaArYjdNb4Xs3H0K0aSr0WggvuCXtA4zVjPwhNa20Me4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649416588; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Xvx8NU+nyxI9ajjvboz+8kVEbpPB1nlwhyJ/HIwvWww=; b=lozwn74AyqQzkFD90A+xZNMc2z0G4sAS5FJ1lsiry2oY/8gu9xXd2YUObReMBLYiJNflTKBHGQutIAa27ZimB72j3VwDtfOzpelDn6hnUI8xcwhV4iaTL8Dp6j/j7RWRCa6EfHKF2QgdR9LIZhQYMKIayPRoFToRDye4sC16tp8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88621+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 164941658815295.80955632901157; Fri, 8 Apr 2022 04:16:28 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id i7PoYY1788612xR2oSbaEZv8; Fri, 08 Apr 2022 04:16:27 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web09.4515.1649416586470493773 for ; Fri, 08 Apr 2022 04:16:27 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-411-y6xRd5GcOL6njHl9gBJZnQ-1; Fri, 08 Apr 2022 07:16:24 -0400 X-MC-Unique: y6xRd5GcOL6njHl9gBJZnQ-1 X-Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 59D57802809; Fri, 8 Apr 2022 11:16:24 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 269831415130; Fri, 8 Apr 2022 11:16:24 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id B982E1800619; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 1/8] CryptoPkg/CrtLibSupport: add fcntl.h Date: Fri, 8 Apr 2022 13:16:15 +0200 Message-Id: <20220408111622.3519517-2-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: sNyiQb70vTbD20GBs2VS0XE8x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649416587; bh=3nVbI8SRRFYVFuyMLEuDrAB267fMfo2/0NahpUUPc8s=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=i3mdH5RJg38GVYxdDjYkhwuDL9r+LjvPmEDpDDmPVUe05n0G6aLKt3iT3mMTMAPBh6Z Izd0Lu9zL9OkwHlepqiyJC1eTYXrjNztjyL0m+gNPGFcS1KNFUA3J2M3r9dAaZ+sIw7Ij m6Vkh5kHcedKr1iAfrAYC5RofBNJulRlBW8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649416589113100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Add fcntl.h header file. Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/Include/fcntl.h | 9 +++++++++ CryptoPkg/CryptoPkg.ci.yaml | 1 + 2 files changed, 10 insertions(+) create mode 100644 CryptoPkg/Library/Include/fcntl.h diff --git a/CryptoPkg/Library/Include/fcntl.h b/CryptoPkg/Library/Include/= fcntl.h new file mode 100644 index 000000000000..040ecfa5193d --- /dev/null +++ b/CryptoPkg/Library/Include/fcntl.h @@ -0,0 +1,9 @@ +/** @file + Include file to support building the third-party cryptographic library. + +Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include diff --git a/CryptoPkg/CryptoPkg.ci.yaml b/CryptoPkg/CryptoPkg.ci.yaml index e21fafac1efe..396ca93dbe49 100644 --- a/CryptoPkg/CryptoPkg.ci.yaml +++ b/CryptoPkg/CryptoPkg.ci.yaml @@ -36,6 +36,7 @@ "Library/Include/CrtLibSupport.h", # This has OpenSSL interfaces that aren't UEFI spec compliant "Library/BaseCryptLib/Hash/CryptParallelHash.h", + "Library/Include/fcntl.h", # These directories contain auto-generated OpenSSL content "Library/OpensslLib", "Library/IntrinsicLib", --=20 2.35.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 (#88621): https://edk2.groups.io/g/devel/message/88621 Mute This Topic: https://groups.io/mt/90333049/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- From nobody Wed May 15 20:29:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88623+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88623+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649416593; cv=none; d=zohomail.com; s=zohoarc; b=XRtbNTXNltIAZ24OJ7Yxpi2U9DvygVE4DIKyTANsProNUJ2Zp7CgORWKvKYPlGhD2nXAqv7IYXgim175OLhwMbg+tYvz2n+OvDitcEB2cgzOkyBHcdESy1nyD2oa9Kn1RLK5Tu849S9LhvJJv8ZfyDqPDh+Ks5LNfz+5fQBuPXc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649416593; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=RI9/Sqd7SfFXrU9+9WtmM9+bDgIHkdXH4roCdrr76FY=; b=UDj2P3Vr8upKMvdSH10vKtJglAkfpEg6m/WdsLblkOEjpqZWRTpLhlWuFzbI+Qw8GXb0+ybgLqEPa212biOrIP1qyW46CtXuCm+VP3y3/tGCfkznfbjGnwJct9by7PsevrrBCL30rDUj3edP0sp+G2snR8r+DOXrldcQ4/OHKt8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88623+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1649416593099916.662626078042; Fri, 8 Apr 2022 04:16:33 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id bZqdYY1788612xkhvQtNIbG2; Fri, 08 Apr 2022 04:16:32 -0700 X-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.web09.4516.1649416591594403703 for ; Fri, 08 Apr 2022 04:16:32 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-596-igwgQQOlN3Cpqeltk2IiBA-1; Fri, 08 Apr 2022 07:16:26 -0400 X-MC-Unique: igwgQQOlN3Cpqeltk2IiBA-1 X-Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 02D1680346F; Fri, 8 Apr 2022 11:16:26 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C6A9B407E1C5; Fri, 8 Apr 2022 11:16:25 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id BEEF8180062D; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 2/8] CryptoPkg/CrtLibSupport: add strstr() Date: Fri, 8 Apr 2022 13:16:16 +0200 Message-Id: <20220408111622.3519517-3-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: 4kaSCL8Zz69Pg2jHavmeiLPkx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649416592; bh=lPVtw1H/FRg4AHR85+bGq/WOIVc16ND4pwJ/jQy6PK4=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=vh4hyhu5k9PDQWVqe5awZFR2N5hor0uWu1iuvKLG5G4chjlviSo470f+Z9qqWmZrYzp Rvrfnv/+jAZy4+gFGwetCQZxqzZt86P8hyRTtexF4kRKgeAF/yrGn+n+vCy4TthXP+at0 5nGv+Dv6ryhNVZVbC5vLqjwi7sft7E51Ykk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649416594942100004 Content-Type: text/plain; charset="utf-8"; x-default="true" Add #define for strstr(). Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/Include/CrtLibSupport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index 75172b920b67..a47befbb907e 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -405,6 +405,7 @@ inet_pton ( #define strcat(strDest, strSource) AsciiStrCatS(strDest,MAX_STRIN= G_SIZE,strSource) #define strncmp(string1, string2, count) (int)(AsciiStrnCmp(string1,str= ing2,(UINTN)(count))) #define strcasecmp(str1, str2) (int)AsciiStriCmp(str1,str2) +#define strstr(s1, s2) AsciiStrStr(s1,s2) #define sprintf(buf, ...) AsciiSPrint(buf,MAX_STRING_SIZ= E,__VA_ARGS__) #define localtime(timer) NULL #define assert(expression) --=20 2.35.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 (#88623): https://edk2.groups.io/g/devel/message/88623 Mute This Topic: https://groups.io/mt/90333052/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- From nobody Wed May 15 20:29:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88628+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88628+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649416604; cv=none; d=zohomail.com; s=zohoarc; b=Q5yWzFiq04PUC1SgSjdfo2cLhEl9q6PDmswSDECg6SELBkgrYMeUnhYMbrMJtEOYhCf1jiB56VWS/CE9MEis+ZzR6kud1H7DmTwkD5QDUzwN865dhe7UFUni1OJ3OMvChoF3d31g35THfI9YdYVFi3YzK4UcdT7E6ltyYWzu5Wg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649416604; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Y1AN7sRwJq6iHcP8LwfFA6iiD2kCvjzjkMP8CVhp2Q8=; b=Cn6QhdAV0wSBr0ytAnrl3IQ9Gkl2YYCnDX2YmaGLagRVpCPTg3xwnri6zuDv+hx7VmpYja8C0PU7pQD+L162X27+333wGTlYjabuBXGUQluK+7MrwODrVU5oYJHQ+I+Phg0AeOPZtg26HcJ5ci3anNrHKILRE7xImNDRV6zGp9Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88628+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1649416604595182.26479240199149; Fri, 8 Apr 2022 04:16:44 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id trHgYY1788612x2NjQa5V7YM; Fri, 08 Apr 2022 04:16:43 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web12.4670.1649416603253285698 for ; Fri, 08 Apr 2022 04:16:43 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-591-j4MT5TH8OLWh1vKehLErzQ-1; Fri, 08 Apr 2022 07:16:37 -0400 X-MC-Unique: j4MT5TH8OLWh1vKehLErzQ-1 X-Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D64E7101AA42; Fri, 8 Apr 2022 11:16:35 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C5C7B2024CB9; Fri, 8 Apr 2022 11:16:25 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C24751800987; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 3/8] CryptoPkg/CrtLibSupport: add INT_MIN Date: Fri, 8 Apr 2022 13:16:17 +0200 Message-Id: <20220408111622.3519517-4-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: zDVYyZ3qSb57cwjYj7MAXJJcx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649416603; bh=bXb+ojzsF7basTKRUy+ZDlWeYhnuIlXYHlWvn9IShnA=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=pVnal5jusQp/asXHKI+iEueTZTqvWBAT2mmnL1ZSJmQ/YBYqofOGDhbqDgsNzAjtGED jD3FtRBl2g1PgpMS3/0lrTvBn+qgaVKSdaDbctLjFKSjtMXkrEPycTsscij2EQDwJYC7W R+nTKZNBMkHhzQTkUnV+mKd8rPYB4FB6z9k= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649416604940100004 Content-Type: text/plain; charset="utf-8"; x-default="true" Add #define for INT_MIN. Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/Include/CrtLibSupport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index a47befbb907e..b1db70a269ff 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -79,6 +79,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define EINVAL 22 /* Invalid argument */ #define EAFNOSUPPORT 47 /* Address family not supported by p= rotocol family */ #define INT_MAX 0x7FFFFFFF /* Maximum (signed) int value */ +#define INT_MIN (-INT_MAX-1) /* Minimum (signed) int value */ #define LONG_MAX 0X7FFFFFFFL /* max value for a long */ #define LONG_MIN (-LONG_MAX-1) /* min value for a long */ #define ULONG_MAX 0xFFFFFFFF /* Maximum unsigned long value */ --=20 2.35.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 (#88628): https://edk2.groups.io/g/devel/message/88628 Mute This Topic: https://groups.io/mt/90333058/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- From nobody Wed May 15 20:29:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88624+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88624+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649416594; cv=none; d=zohomail.com; s=zohoarc; b=MsOO5FUtT+eUTgNkLZJBpic6zqI1tikEBh45jZITdegjORt6I/5wFYek+o0bd+jkqowHW5LjCGSZdaO/jU/86w9YSBa+5XzFbH4T96tQp4ODpLEGTsXzcV7FzmR6S8c68hL7aa+OXd8ktpaxX1GJjW7iUODnJj7aNHvXxBmzcBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649416594; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=21UzKJLVpTJHH7/S6YMuJGw0d1jMv+e2PXZcMzT/6DM=; b=CoFK9HSsFshtJcK9ntX9Djj4k7g6RQMQNW2YuIT6KCqn/2s/MYzZEbby/GqwIB5+n0fni9qXShaGRPIUuD68flgU7/yZnNB1wrTfC8liVu4f9kKx7OnCB5XoxjHCZaeeOy719r0OfhxqtL+T1UE3Q0W8oxqutMPTXsQ/KIPwqpU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88624+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1649416594100640.8275424740905; Fri, 8 Apr 2022 04:16:34 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id debIYY1788612xuYRpR5syhw; Fri, 08 Apr 2022 04:16:33 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.4511.1649416592791603934 for ; Fri, 08 Apr 2022 04:16:33 -0700 X-Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-421-KPhBZWBtNlCa1DmaKRuBmA-1; Fri, 08 Apr 2022 07:16:28 -0400 X-MC-Unique: KPhBZWBtNlCa1DmaKRuBmA-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9CE0F3C01C15; Fri, 8 Apr 2022 11:16:27 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6D077C15D75; Fri, 8 Apr 2022 11:16:27 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C5A2D1800989; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 4/8] CryptoPkg/CrtLibSupport: add UINT_MAX Date: Fri, 8 Apr 2022 13:16:18 +0200 Message-Id: <20220408111622.3519517-5-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: aaMERpLGHAt9RgMCXP0HRqIcx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649416593; bh=Vf2jEqQGAYKn0oRO/dPdm3TKrcACgLQvnWe7qhMmtSA=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=pbp5iFhhaInJb0pj/oLRy71UawD38ldW1U5hg/Mpyecd9Tq3OJadiuI55jD0aJh3QW4 R1xj6WI8moI8/4JytJbUdBxbfWbdgErdTIouj8ZObP+9yVjgWdfTIpQxn4IW1IFD1Tq08 +KqQ1T6iuAg06mGYHxJKM3WRxoQr4TM848M= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649416594942100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Add define for UINT_MAX. Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/Include/CrtLibSupport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index b1db70a269ff..aed21932278e 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -82,6 +82,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define INT_MIN (-INT_MAX-1) /* Minimum (signed) int value */ #define LONG_MAX 0X7FFFFFFFL /* max value for a long */ #define LONG_MIN (-LONG_MAX-1) /* min value for a long */ +#define UINT_MAX 0xFFFFFFFF /* Maximum unsigned int value */ #define ULONG_MAX 0xFFFFFFFF /* Maximum unsigned long value */ #define CHAR_BIT 8 /* Number of bits in a char */ =20 --=20 2.35.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 (#88624): https://edk2.groups.io/g/devel/message/88624 Mute This Topic: https://groups.io/mt/90333053/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- From nobody Wed May 15 20:29:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88625+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88625+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649416594; cv=none; d=zohomail.com; s=zohoarc; b=VUmRs6PoxliAL4IVyXCTmQOcP5pycnDxq5TuI2s6qqtfhTK4APzstd/G6/LMjWe8p4iB9y8goiF2MLhkUyLLTjdWMag+7D2xg8h+yrJX2dh6T8+BSc4HnZkYT4B2Kq/JS9o+HQxsnFpWY5ywbg1gkIG9vhLxHqDIAab5y6y6K6Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649416594; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=5evAhsYpf1XSSjRzB8NSTDPmii1lCnyL8o3i1Ja2nZo=; b=CbrqKHQsZnueJDBtgUd20+EMIuqBbDmbVmFtGxxzcK7SrOZ9/yvXQmw2YNVvjHbdUmcEalUKptUPC5H2e5+FgYJKvNQB8jH2Rpgw894wzajj6D+sumUkU8wOB3gOrbGp0co1CgtOSx4fEMlRhTocq8XXiPB3Jb7CUNs9UAd9fPk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88625+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1649416594610115.5106870192061; Fri, 8 Apr 2022 04:16:34 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id qdgBYY1788612x3800WjY8Q2; Fri, 08 Apr 2022 04:16:34 -0700 X-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.web12.4668.1649416593453107858 for ; Fri, 08 Apr 2022 04:16:33 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-648-_s7g6uAiPK6QwriR0ZVkVA-1; Fri, 08 Apr 2022 07:16:29 -0400 X-MC-Unique: _s7g6uAiPK6QwriR0ZVkVA-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 46AC7101A52C; Fri, 8 Apr 2022 11:16:29 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 17A3FC28122; Fri, 8 Apr 2022 11:16:29 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C8EE9180098A; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 5/8] CryptoPkg/CrtLibSupport: add MODULESDIR Date: Fri, 8 Apr 2022 13:16:19 +0200 Message-Id: <20220408111622.3519517-6-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: cnX7FH7Y5w0Ghq1WegbqpiOMx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649416594; bh=wGUpWhGFmWRVNyFbS5E2LdhLeI3lWlGGdltKci3WyfM=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=wzO9Amy2mzx5jFXypUVULrXFGy91bbn3rIUcdV/JHsJtHQ0HjZq6YuSTnjcfN5MuRVh kGDyA9rRHdaC8askAT+aI92wNLJW4xHccxkTp6Nd4p2fXlvfxHT4+wLpqk+nQaN7G/ZY3 Tpb48kMo8uxcPunOwcnL+HKzZaRjqL7AKM0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649416594944100005 Content-Type: text/plain; charset="utf-8"; x-default="true" Add dummy MODULESDIR #define Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/Include/CrtLibSupport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index aed21932278e..9829ec010aee 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -18,6 +18,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent =20 #define OPENSSLDIR "" #define ENGINESDIR "" +#define MODULESDIR "" =20 #define MAX_STRING_SIZE 0x1000 =20 --=20 2.35.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 (#88625): https://edk2.groups.io/g/devel/message/88625 Mute This Topic: https://groups.io/mt/90333054/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- From nobody Wed May 15 20:29:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88626+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88626+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649416596; cv=none; d=zohomail.com; s=zohoarc; b=Hp4YsWeR9aO9hUC/lJe11SFIq7lbhbBd/rYo7VwF7gkSHCbNKRFYBj69pmbZkNQoRsJq3HgLK3+Cd3m4W0tsJVR4TPhzDDvGVZP3iit5rMk/BAWeK4GfskAwFOYnqxba9wQ45d9Sr3PvqkhjHoJNZ0v+0BVoEibgKt0qD4R5E4A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649416596; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=pZ7GkLTTo+rYj2S0N/NZdQsmZmIvZoi/u5kH/BDaaaM=; b=PJT5U9SLmpLogUwTfEewm1MjwpDj9p2j26HZ98Em94x3Yep1upvY/JRcon4WJKDl70uN06HAs4Nr63a/4oPIdS9hCSSiBUl4k/bSmT74Sb9TyxP+Y0k9bMO9u4vj6D2uJT9vuL+0ATpiBwDM5dsIExldNob4NtiXabX1hVMnOw8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88626+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1649416596501445.8640748439552; Fri, 8 Apr 2022 04:16:36 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id tqKNYY1788612xw6bYqsgjdI; Fri, 08 Apr 2022 04:16:36 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.4541.1649416595236444519 for ; Fri, 08 Apr 2022 04:16:35 -0700 X-Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-577-I6Np9AI4N56cxi6KDkThQw-1; Fri, 08 Apr 2022 07:16:31 -0400 X-MC-Unique: I6Np9AI4N56cxi6KDkThQw-1 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DFB171C0AEEC; Fri, 8 Apr 2022 11:16:30 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B088A40470D5; Fri, 8 Apr 2022 11:16:30 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id CC24B180098B; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 6/8] CryptoPkg/CrtLibSupport: add off_t Date: Fri, 8 Apr 2022 13:16:20 +0200 Message-Id: <20220408111622.3519517-7-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: 2iGGmiE1yyJWvNZbNQ1u2ayVx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649416596; bh=Ln2RYsf0hnTQgy+bh9nGSBXtC71x2DYNv1YfzTT2yJs=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=aRNF9TpmQ03bvrspZQ7QI+RjqYnwxoA4Ha58QtBmLGY2se4kRNjQPFUdfRKF2uOBFuZ kBo/oiKhNKtL87QLWzXAdFAQz3Et3BqvEDr/09FjBMG0EXijjoPWSJZjW9yzZBiGQ4zWj PQk8n3RDVxZId8TzpXZVJ4vDOurTZpDSfKI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649416596898100011 Content-Type: text/plain; charset="utf-8"; x-default="true" Add typedef for off_t. Will be needed by openssl 3.0. Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/Include/CrtLibSupport.h | 1 + 1 file changed, 1 insertion(+) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index 9829ec010aee..287d7f76bfb3 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -104,6 +104,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent // Basic types mapping // typedef UINTN size_t; +typedef UINTN off_t; typedef UINTN u_int; typedef INTN ptrdiff_t; typedef INTN ssize_t; --=20 2.35.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 (#88626): https://edk2.groups.io/g/devel/message/88626 Mute This Topic: https://groups.io/mt/90333056/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- From nobody Wed May 15 20:29:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88629+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88629+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649416606; cv=none; d=zohomail.com; s=zohoarc; b=jhOSQJ98u2c+VbuOpAUWXMISoldn/jKo18+gO4YxBzRpy9DRXvhcSvDM3REUOPiLJGlJePE7ON0Y5kMxv0tHWS1O1CPoNAciVUv2NK8e2gLt3EKRl8duXPO+nCORYrHx9bBKWwjGDOz47JihHUeNynqW6g6RoSZxObaa8QWSE0s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649416606; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=CfAN5CNCrLoY8XKKBacgaooHEKSbQNW7ucmdPro+Vd0=; b=jGfiQMBPanvRC1gEJfeJ7uNhpasSaw7S6HO8B/vEGt2bfjvOww9cb070R5c3XjdYwhOmxySCH7v2Uc5LHhUIzbFkHVDJa2PL/G+UE5FjkafnRXtwzxs8MkrphN/ZEENIyASqpdeVUq6M36UeihEZfK4ZE8STYxvvz9DB6zEjO7M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88629+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1649416606431629.3207850290332; Fri, 8 Apr 2022 04:16:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id SOOFYY1788612xywJxr7jpv7; Fri, 08 Apr 2022 04:16:46 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web09.4519.1649416605169449150 for ; Fri, 08 Apr 2022 04:16:45 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-471-uPDatWFhNXy7wtL2GR_uiw-1; Fri, 08 Apr 2022 07:16:40 -0400 X-MC-Unique: uPDatWFhNXy7wtL2GR_uiw-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 03E5880B710; Fri, 8 Apr 2022 11:16:40 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5CB7B7AEA; Fri, 8 Apr 2022 11:16:32 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id CF88B180098C; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 7/8] CryptoPkg/CrtLibSupport: fix strcpy Date: Fri, 8 Apr 2022 13:16:21 +0200 Message-Id: <20220408111622.3519517-8-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: OOiS9yYd8JcyDXqrNDVbTdZ9x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649416606; bh=BiB9J7FYkp5R6Ypg67ZSugpHYGgLdmXvvHNZ99+uA0I=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=AzQ9kSAuuYa+gbPldxhiLiwkHEgMTwISIcmmkmSK/GGL/gTge7Mi6yJik5sjpNRSxwk WZ3GWn0d3SC94KHc/J8QkpcVRBXUbLDSQKsHdThdPTiNXbWLbWoJLMPmVoiVfzVSvvl4E Yj4Eh/SODb01mQcjmBaETt+jhmb6mhuJ1F4= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649416606939100011 Content-Type: text/plain; charset="utf-8"; x-default="true" strcpy() returns a pointer to the destination string, AsciiStrCpyS() does not. So a simple #define does not work. Create a inline function instead. Signed-off-by: Gerd Hoffmann --- CryptoPkg/Library/Include/CrtLibSupport.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index 287d7f76bfb3..7c1bc7755b1c 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -395,6 +395,16 @@ inet_pton ( void * ); =20 +static inline char * +strcpy ( + char *restrict strDest, + const char *strSource + ) +{ + AsciiStrCpyS (strDest, MAX_STRING_SIZE, strSource); + return strDest; +} + // // Macros that directly map functions to BaseLib, BaseMemoryLib, and Debug= Lib functions // @@ -404,7 +414,6 @@ inet_pton ( #define memcmp(buf1, buf2, count) (int)(CompareMem(buf1,buf2,(UI= NTN)(count))) #define memmove(dest, source, count) CopyMem(dest,source,(UINTN)(co= unt)) #define strlen(str) (size_t)(AsciiStrnLenS(str,MAX= _STRING_SIZE)) -#define strcpy(strDest, strSource) AsciiStrCpyS(strDest,MAX_STRIN= G_SIZE,strSource) #define strncpy(strDest, strSource, count) AsciiStrnCpyS(strDest,MAX_STRI= NG_SIZE,strSource,(UINTN)count) #define strcat(strDest, strSource) AsciiStrCatS(strDest,MAX_STRIN= G_SIZE,strSource) #define strncmp(string1, string2, count) (int)(AsciiStrnCmp(string1,str= ing2,(UINTN)(count))) --=20 2.35.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 (#88629): https://edk2.groups.io/g/devel/message/88629 Mute This Topic: https://groups.io/mt/90333060/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- From nobody Wed May 15 20:29:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+88627+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88627+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649416603; cv=none; d=zohomail.com; s=zohoarc; b=jBpkjD47mmu7vWkGqQ0qVhWbDsYOwcQSZBnHYvyCc8KFkoYSiC60Vd7pAHlKQtI9GPsHV1eQ6oTKpDHyIGsZ3V0NCIbyckG4i6P1//BQ+aic4i84IKKuokmNglldT+Jp0u4ZBQpXzHsRjDlnoHaikzu7yuiSvqOpcfNGRXWOFxo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649416603; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=UEUaLAdWm5ivXV7CCqxbY3xDEtwBduHVIhGRmZSHf20=; b=nDXsC+/GH+5FXG8EbSv8dRnqffzJTcLgOhf986rY9AXHjn/k564LS3Niw6c1OnLRbqmE4d7g3IXvAs5vVR3KBD/A9Nt2EcPIRIO1X4wD2uz9JH4aT922jSNNSwTe2x7aIpQxTZlI+5PjyzVJyHS7Zm9Ref0sFLjNvHPXvkBWMqM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+88627+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1649416603627427.1935441322105; Fri, 8 Apr 2022 04:16:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id lfwSYY1788612x90MebZrIBG; Fri, 08 Apr 2022 04:16:43 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web12.4669.1649416602677644268 for ; Fri, 08 Apr 2022 04:16:42 -0700 X-Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-671-DxogCKRHMkKDZKxE7isNcA-1; Fri, 08 Apr 2022 07:16:37 -0400 X-MC-Unique: DxogCKRHMkKDZKxE7isNcA-1 X-Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7D4261C0AEEC; Fri, 8 Apr 2022 11:16:37 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4E0B8407DEC5; Fri, 8 Apr 2022 11:16:37 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id D2E15180098D; Fri, 8 Apr 2022 13:16:22 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Jiewen Yao , Guomin Jiang , Jian J Wang , Xiaoyu Lu , Pawel Polawski , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 8/8] CryptoPkg/UnitTest: fix DH testcase Date: Fri, 8 Apr 2022 13:16:22 +0200 Message-Id: <20220408111622.3519517-9-kraxel@redhat.com> In-Reply-To: <20220408111622.3519517-1-kraxel@redhat.com> References: <20220408111622.3519517-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,kraxel@redhat.com X-Gm-Message-State: ivew7EIrn9md8ZYwp2SZ35Pex1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649416603; bh=nV0tXJ8bVnd8lVfskbwPfWP79/hzz1VM3nRTYaoz3qI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=gg/QBaJgJmURKNi36JReBvqxxb1Xx0uscUi7QfGF1jNvcJIlyVYL9uvpjraseQSsaGS gvrciHrHdFDKl/+4/CrpLu3YOpbKwNoYEKRhnhTt2YJ7MblH54BUM0pjfws434TTy14n4 ndAISaQC+yrXl9tEJZ9t2dXhFfu6dtSxCeM= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649416604926100003 Content-Type: text/plain; charset="utf-8"; x-default="true" openssl 3.0 wants at least 512 bytes, otherwise it throws an error: error:0280007E:Diffie-Hellman routines::modulus too small Signed-off-by: Gerd Hoffmann --- CryptoPkg/Test/UnitTest/Library/BaseCryptLib/DhTests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CryptoPkg/Test/UnitTest/Library/BaseCryptLib/DhTests.c b/Crypt= oPkg/Test/UnitTest/Library/BaseCryptLib/DhTests.c index 5cfe8d70535b..29e892a1514c 100644 --- a/CryptoPkg/Test/UnitTest/Library/BaseCryptLib/DhTests.c +++ b/CryptoPkg/Test/UnitTest/Library/BaseCryptLib/DhTests.c @@ -53,7 +53,7 @@ TestVerifyDhGenerateKey ( UNIT_TEST_CONTEXT Context ) { - UINT8 Prime[64]; + UINT8 Prime[512]; UINT8 PublicKey1[64]; UINTN PublicKey1Length; UINT8 PublicKey2[64]; @@ -72,10 +72,10 @@ TestVerifyDhGenerateKey ( Key1Length =3D sizeof (Key1); Key2Length =3D sizeof (Key2); =20 - Status =3D DhGenerateParameter (mDh1, 2, 64, Prime); + Status =3D DhGenerateParameter (mDh1, 2, sizeof (Prime), Prime); UT_ASSERT_TRUE (Status); =20 - Status =3D DhSetParameter (mDh2, 2, 64, Prime); + Status =3D DhSetParameter (mDh2, 2, sizeof (Prime), Prime); UT_ASSERT_TRUE (Status); =20 Status =3D DhGenerateKey (mDh1, PublicKey1, &PublicKey1Length); --=20 2.35.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 (#88627): https://edk2.groups.io/g/devel/message/88627 Mute This Topic: https://groups.io/mt/90333057/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-