From nobody Fri May 10 11:02:38 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+88695+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+88695+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649676307; cv=none; d=zohomail.com; s=zohoarc; b=OpPDwJhXf5QU1IFwL/cpQxkM5BXL0r/Ei4Bscfsm+7+sWQEVIHYo+wPpDzvsbWeDl6u2GRdvcNKq3SKMiqxxPMpy52wGF6ZDQvAFH85v7g1aw6jQOB0LqXUDQcVDEaNdZXG2arTqkSp15OgplxVqFNkDtCHeAURz5pVKykq+1Cs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649676307; 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=+zX78cpXEwaqEyzw5vJ9eWPsi4NG4mOtBrZipmexV2o=; b=HrIe3XW8B/vJvA/L/qKQSs45HxSETu+IkcjzksnANue+iCp8f21PICT5xxyizRzoHzEcPcHjt3KC0KwEIEV1H56XfXtdMtQb8abYyU0gJsPEv9uf5GDY5nKoZorj3IieyWhxe/f3F/yGX/KzPHjFmeyjK3La8YbCm10AKtjwMzs= 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+88695+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 1649676307449798.4560110027808; Mon, 11 Apr 2022 04:25:07 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id QW5QYY1788612x86lCR6cRcT; Mon, 11 Apr 2022 04:25:07 -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.28100.1649676305875424329 for ; Mon, 11 Apr 2022 04:25:06 -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-387-FddshwpjOI-Gdcnisz59kA-1; Mon, 11 Apr 2022 07:25:01 -0400 X-MC-Unique: FddshwpjOI-Gdcnisz59kA-1 X-Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 900E918A6581; Mon, 11 Apr 2022 11:25:00 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4F800401474; Mon, 11 Apr 2022 11:25:00 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 63D8A1800606; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v3 1/8] CryptoPkg/CrtLibSupport: add fcntl.h Date: Mon, 11 Apr 2022 13:24:50 +0200 Message-Id: <20220411112457.506101-2-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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: FNjhAd0VS9NRKaCYcpEh1NZvx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649676307; bh=l4zneP7mSUnAD0adTJjyK2YbXzviAWyypmKgwLJZeYg=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=vm3wydgb4KkdoqXAEyO/NX9ef+VoQV4fXqECqIigzlaYHMqL2SzMgLB6uTtmt7ZulpC brkhE+XrpOBb/dq7cPamNeXfvYAwhwAW+djsFkm6NOwjziDr6UDIgyxzCb7KBAmH837Li lbfM1lPv2dN0Z6zKutFREiGtuyqpPxvW5+k= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649676309449100003 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 Reviewed-by: Jiewen Yao --- 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 (#88695): https://edk2.groups.io/g/devel/message/88695 Mute This Topic: https://groups.io/mt/90392480/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 Fri May 10 11:02:38 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+88696+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+88696+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649676315; cv=none; d=zohomail.com; s=zohoarc; b=LnHxP7rgddIbWuT7Ewmg8xay56F00XnqnSK1+v2BJAx0Cx0/18tInYacPbvQiEz7kLw7SdCkKhk5VLTH22fS/eo+AyN6CkpFJB7aor9Yw0uDGIjEK8opL0cO+XRtqw6L/AzU6kPa6OaTQN0p4tx4px1q7/w+SKo99n2GmQLRlX4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649676315; 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=9zNjgNThnRgwSElTe02NQ40C1C+zKrzF8QNyBb6Ig+E=; b=I5X0BR8u60rHnob+KGWTUPG23RB8W1WPOnc+uVsfruhSyaqw2hf1M9Kk8I8z/vU2Bve+3Kel7wFuAavV2C+RKylePd2ZqUpB+tZBmrwd/Ub/pj2WhTBQ2wIg/bTZZ4daNu183O6zyIPczTRNTMOO0VnEJrgIt/s9GzKQp4lsFx0= 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+88696+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 1649676315052687.0940032887146; Mon, 11 Apr 2022 04:25:15 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id UQt7YY1788612xO0bQHP4ZKE; Mon, 11 Apr 2022 04:25:14 -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.web08.27907.1649676313840996646 for ; Mon, 11 Apr 2022 04:25:14 -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-75-K1ROXEX6PoqlgJzf8IbjwA-1; Mon, 11 Apr 2022 07:25:10 -0400 X-MC-Unique: K1ROXEX6PoqlgJzf8IbjwA-1 X-Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B6E5A1C09403; Mon, 11 Apr 2022 11:25:09 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 78B22401474; Mon, 11 Apr 2022 11:25:09 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 69AD6180061C; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v3 2/8] CryptoPkg/CrtLibSupport: add strstr() Date: Mon, 11 Apr 2022 13:24:51 +0200 Message-Id: <20220411112457.506101-3-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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: vnjO1T79YYLLxPgdGpQRzIgtx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649676314; bh=OrVyInOHAeAXBVfMvqg38/e/ASL5MwVO8a1oMUEQpbs=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=TUbdbQ8Lso5jlTvjZLPZwaJ77RaOKH4xE+wBDMOfaBeCGd+4UQJ7ZqVPlQAfw1HCjF6 u34Wj1Pb3Mdy93cDWx0Jkgg545KDU2WY5evnI2IB8Mz9RePJxVGzCLJTe2LgG3cybJG8m 1Yh3blzljPKHsPW4RQyXbzwywTlzbdVGwKY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649676315352100001 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 Reviewed-by: Jiewen Yao --- 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 (#88696): https://edk2.groups.io/g/devel/message/88696 Mute This Topic: https://groups.io/mt/90392483/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 Fri May 10 11:02:38 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+88697+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+88697+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649676317; cv=none; d=zohomail.com; s=zohoarc; b=kkp2bW5f79qE1PO+sZ54H1x5FtFiCSDCplxnQrcIgYVUKv8pP4tQEBHQkE+AJGKbkuYMjECHa2VVsFyMFkImJwJvyQMbA6d2O8MR5zeXktnp2K496Wbdh0TIsNwu/ILws7ndzDUkA2WUdkDS+I8eJ8M9uHUZ2krFAZKU7hUHtJY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649676317; 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=HdLNEBiQWjpsS9y62CUF9F0cx0WZyC0WvH4V6r4btzc=; b=aF1s4QEdczaPelPvn0Qw+sf5ZUO7m8t0qUg616iiOzOFGc/NKSvhEYSFyoLOKhQ3uqpnsPGT42LHCLR+I4JpoQ9G0HFJWwMu3wYaFKMMXgf5B5x4I04W9M7ZmyhLEwTYcGHW1ItkxNbHsi4013Tl/nBDpHQk/cjpr0fthRQARz8= 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+88697+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 1649676317458316.07969211740794; Mon, 11 Apr 2022 04:25:17 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id CMBzYY1788612xj8YzyDwKba; Mon, 11 Apr 2022 04:25:16 -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.28351.1649676316000527615 for ; Mon, 11 Apr 2022 04:25:16 -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-259-Qc8eiiAXNISeW3z4iN1SHA-1; Mon, 11 Apr 2022 07:25:12 -0400 X-MC-Unique: Qc8eiiAXNISeW3z4iN1SHA-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 B02D01014A6D; Mon, 11 Apr 2022 11:25:11 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 721A6145BA41; Mon, 11 Apr 2022 11:25:10 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 6D261180078D; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v3 3/8] CryptoPkg/CrtLibSupport: add INT_MIN Date: Mon, 11 Apr 2022 13:24:52 +0200 Message-Id: <20220411112457.506101-4-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-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: N2dqXNKySv6mJOeCRYCIdjafx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649676316; bh=kdodIWfjU4ljME/4N6jnWaGGLIm0Pfy40k8jdbRZRc0=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=I7nGzwt7gyzTH81u6SYOHeKxYtwwWfQnQt0/A63A4dOayaQ9Xyz/9uVG71/dnnO5Ped kYpA9lSkM9/r8FmWnk0PHO7Dj158pYr7aH+I3DNClD7lYfHEMnOfcpg1Ioe190TwrJYG7 lMQVvIZsiB3MsJqJcqD/1BYv6cYQGZ8byLs= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649676319393100009 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 Reviewed-by: Jiewen Yao --- 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 (#88697): https://edk2.groups.io/g/devel/message/88697 Mute This Topic: https://groups.io/mt/90392485/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 Fri May 10 11:02:38 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+88700+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+88700+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649676321; cv=none; d=zohomail.com; s=zohoarc; b=VgMcoyvGBaDw1spg2BbaYbcS/zYer1jVS+Ndx2IIPOaDVAtDL5ytAWoiW/RLJ6BoqpOzccf3n+o82OBWPRK3REnUuJhz5ZcOfkvUSut0vKTOPkJHXtRNZtWnvC62vIk2vsC3Sa+pH2iSkD6IELlAbZnvXlK/py6bXTHX0BIuEXU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649676321; 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=0jz4Z6hgNu6OnFcbAvJShZ49FVywpF7ne0Wr450ch4k=; b=D1ex1p0FOh3XeFB+suSbkB4L74Ann6XPmrhF3X41l8t7lccFLiHgSyr6foILyKBAz5tLXtxcILwtVx2kKl3/JeKh0MwcxTxq88hpuIdL2mDqUjIDJeTBvgIgG8KkhVaJJnA/jQQsN2BVb9VMc3sV08VYu7xyK4KkxU70PO3hKAY= 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+88700+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 164967632187337.416878900134634; Mon, 11 Apr 2022 04:25:21 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 5t87YY1788612xCbN61oJc3a; Mon, 11 Apr 2022 04:25:21 -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.web08.27908.1649676320524998375 for ; Mon, 11 Apr 2022 04:25:20 -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-122-Y6LZ4SmiMlOHYD5REWIxvg-1; Mon, 11 Apr 2022 07:25:14 -0400 X-MC-Unique: Y6LZ4SmiMlOHYD5REWIxvg-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 954CD2A2AD4D; Mon, 11 Apr 2022 11:25:13 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 658C1145BA44; Mon, 11 Apr 2022 11:25:13 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 70758180084D; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v3 4/8] CryptoPkg/CrtLibSupport: add UINT_MAX Date: Mon, 11 Apr 2022 13:24:53 +0200 Message-Id: <20220411112457.506101-5-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-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: CaQtawxLrR8d2VVSQSdKKdckx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649676321; bh=4/tqyX5gL1FxP7Gr464+vDNSElvQ8pSFdl/K4fQbTZI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=D1U7EQWVAXcJGjXLCfQvPl7RDPn+KSq4k+oDVNy1lmpSQphwk2oL7D1AhSz2gfCu/E/ G7zVkuMLzupnsWH2UIog9HTZfDaaLidjKV8isTXxf9jhCedUEgtbbSlqdA5V8BC2uWnjU 2NsUHIxsPx4UCrELvLeeNEqXPSqu9FIApEE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649676323401100015 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 Reviewed-by: Jiewen Yao --- 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 (#88700): https://edk2.groups.io/g/devel/message/88700 Mute This Topic: https://groups.io/mt/90392493/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 Fri May 10 11:02:38 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+88698+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+88698+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649676317; cv=none; d=zohomail.com; s=zohoarc; b=XhngUpagkodRv0v4eznOGJ9wbPVIoOAdC1mtFC+YPZGe/OEUnLOeusDexTY7qvOcYzIISE91Gfmz3DfEa8SSJmeqznpmrGe5zp8n2tsqCpXLpfwvV+kyJwUwq+pdvCtO2jHSzBvZJLQfAPSWZ160H3ebXLmS6Eq77VwJFttw5n8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649676317; 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=1PAmAO371Oo609Ln2RFCBE2KFWYjR0cDz1n64xgV/Uc=; b=etuc/mSoItQ8ou5RvHfX260H1M5Dfwqdjo9fou60EC7IMjIVAKcO0rVb8yKp33ug6HVRz3kUqxvgNbn9phrTy/fggecRmRq0uII2L0EHaLgmUp3bwfFQ+X2lo4zuP1pjQanTLjRu+RQdyWkD76Sh48fDap7D1E96yOx2YkW/7aw= 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+88698+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 1649676317661222.80551424960254; Mon, 11 Apr 2022 04:25:17 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id gt3uYY1788612xRvxwn8Ywth; Mon, 11 Apr 2022 04:25:17 -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.27701.1649676316549652560 for ; Mon, 11 Apr 2022 04:25:16 -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-21-MFoc2QQ5NkuylVQfi7kagw-1; Mon, 11 Apr 2022 07:25:14 -0400 X-MC-Unique: MFoc2QQ5NkuylVQfi7kagw-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 39D7D805F69; Mon, 11 Apr 2022 11:25:14 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 09CE8C26E9C; Mon, 11 Apr 2022 11:25:14 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 749D91800850; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v3 5/8] CryptoPkg/CrtLibSupport: add MODULESDIR Date: Mon, 11 Apr 2022 13:24:54 +0200 Message-Id: <20220411112457.506101-6-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-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: 3C5BXiO69uOosbusqbLoPtSdx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649676317; bh=WDpCnw0WrJ9sBI+8+S589m6ELktycKzNp2qElO8TvFg=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=IAmWprw0q+Sv+rYZOWgE7DJuUZdxyiCdSCf6HkgOsB+lA78vlDCrbW5j2HJ0f3n3L8i oSwb/NVD27GPi1vvcUv8iBy5j/Z95ihBDjROC1hO7ywGIDDZXjUHkGnPspEiDAD0m2Psw 4HWN6LV/wZpRIUtsycUeO4jErysDJt1lbaU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649676319393100010 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 Reviewed-by: Jiewen Yao --- 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 (#88698): https://edk2.groups.io/g/devel/message/88698 Mute This Topic: https://groups.io/mt/90392486/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 Fri May 10 11:02:38 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+88702+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+88702+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649676338; cv=none; d=zohomail.com; s=zohoarc; b=moh+AzKswlRMLRCuXw7bRZEdOhx0NSd0hfaodh0aba8dUCBalX7R+EwG4O54k24ZfN27pR53DSt40ru+P/8ap4Gt8TVC8cVFHclpTW0/T9l8A+bPTr6BRrXd7eSijenNJSPTVOP4Ml9/r5xzb0ONZK9mlzCPAmQBbCfOsKgkjIg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649676338; 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=f+QcWKcGGmQqpJFeDXVIF63moIfFKkwEc3u60lGvE3w=; b=WKY2Mv9ga7Pu+cDhzTn9+5zCE6t6BDyVk9NucM05Wn8JnwExCyL9Gwo0SalMs9H/hx9CVyF0eUe74OxXCRd61vsXpD3NE2b5xWousKo/cD7Ze0JZv0g9iAeVGcZBDBgkDmozqrAov1LWJqM+95DAXPG2kwpXqmeb9GHzRsb1rQU= 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+88702+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 1649676338666448.2623073995919; Mon, 11 Apr 2022 04:25:38 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Eu7PYY1788612xlucgLS9U7T; Mon, 11 Apr 2022 04:25:38 -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.28355.1649676337473503027 for ; Mon, 11 Apr 2022 04:25:37 -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-245-U_QnfOMkN8y5mS5Svk2GVA-1; Mon, 11 Apr 2022 07:25:32 -0400 X-MC-Unique: U_QnfOMkN8y5mS5Svk2GVA-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 45B6C101A52C; Mon, 11 Apr 2022 11:25:32 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C2ADD2024CCB; Mon, 11 Apr 2022 11:25:14 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 77FDA1800864; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v3 6/8] CryptoPkg/CrtLibSupport: add off_t Date: Mon, 11 Apr 2022 13:24:55 +0200 Message-Id: <20220411112457.506101-7-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-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: eh5ZoCQ0wSYb2FjvAbJMAw3jx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649676338; bh=QvtN2qq8S9OOFJdGobcHVZznDCb+3ZpnNX2ZsIvHBWo=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=VvrWmtreFxFxGE+VpCJMQ1OvFkofwM0Jw8vEeDNlXwi4hlbT28HWf8OZLtaJ8GCapkf aQ67BctKfu4KNjZZ930Tp/QJaHcJNOhWuTHshRWe14FsNDi+zKAXKVXKFDDUbjvhqrAR8 Yr1rkJCv/6MPhBcGQUcwANzRI5peZM6OHZo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649676339600100002 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 Reviewed-by: Jiewen Yao --- 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 (#88702): https://edk2.groups.io/g/devel/message/88702 Mute This Topic: https://groups.io/mt/90392498/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 Fri May 10 11:02:38 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+88699+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+88699+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649676321; cv=none; d=zohomail.com; s=zohoarc; b=MTichC+fHlQ9zC5WN9+iQr9ATED7BnJmlz7bYJPaa7lHlf73Z1zQZ2APLkXLa4Opdc2qqHsiC3fOrnj/ssyt2a7d6pHMuMsyur0B8+eBBj6X5ER2WEJJU1w6jGEW9IdtmjzxjgR3ITv97QLBbe3tAiL9eKfUyIJVhiKfk7rdrJU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649676321; 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=F/u89cqE7vxsDpT0o6oZRnPgfwZbLw66y1aEUKMLrCk=; b=gwJ/qpwPvIw4pWCtdli6e2vRTeFIcuwgClSae4QJsv3AQKA7zCqvystfVOQo06+j03Q+/J9i3cRSA5MvKQhktbPy3J7iGxXn7gjm3BGC7Enks2UseikWZYNz7cA1i6DPf0nD5qDsL0huIMD7iHgNKr96pO7a2aBYFI5eXAkUpks= 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+88699+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 1649676321137668.6575220411805; Mon, 11 Apr 2022 04:25:21 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id mtUYYY1788612xh0R0XflG8c; Mon, 11 Apr 2022 04:25:20 -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.28353.1649676319932114781 for ; Mon, 11 Apr 2022 04:25:20 -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-541-QZy2RAIKOXCNhuMPO6V47g-1; Mon, 11 Apr 2022 07:25:16 -0400 X-MC-Unique: QZy2RAIKOXCNhuMPO6V47g-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 96AB6833964; Mon, 11 Apr 2022 11:25:15 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6615A42D3A1; Mon, 11 Apr 2022 11:25:15 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7C9191800908; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v3 7/8] CryptoPkg/CrtLibSupport: fix strcpy Date: Mon, 11 Apr 2022 13:24:56 +0200 Message-Id: <20220411112457.506101-8-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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: P5MtgFXEDpyJiRMqLMdyQ0rRx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649676320; bh=P27AlurSKl6RgjZUZqhbQWVt2z97QxPkkPsS07Vs4Yg=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=CtsntMvPvIm+Uvw56RyDYGHC3Hrg3kZLwBZ3/LyGRsb61erK1vSszShUawsrUdIDXcZ fqrRwJxABU3eR8YDn3vI7S4/4Zt4EW7uNJ33RuCr2mLl6JKE0dkR+DX1mUN02ccB/Yrk4 mv/hpGOrto9VunAShau8b9jlNQpPfn81M1E= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649676321413100013 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 function instead. Signed-off-by: Gerd Hoffmann Reviewed-by: Jiewen Yao --- CryptoPkg/Library/Include/CrtLibSupport.h | 7 ++++++- CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index 287d7f76bfb3..bdc2654b6eef 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -395,6 +395,12 @@ inet_pton ( void * ); =20 +char * +strcpy ( + char *restrict strDest, + const char *strSource + ); + // // Macros that directly map functions to BaseLib, BaseMemoryLib, and Debug= Lib functions // @@ -404,7 +410,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))) diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c b/CryptoPk= g/Library/BaseCryptLib/SysCall/CrtWrapper.c index bac477da070b..6fcbe5885e7b 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c @@ -265,6 +265,16 @@ strcspn ( return Count; } =20 +char * +strcpy ( + char *restrict strDest, + const char *strSource + ) +{ + AsciiStrCpyS (strDest, MAX_STRING_SIZE, strSource); + return strDest; +} + // // -- Character Classification Routines -- // --=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 (#88699): https://edk2.groups.io/g/devel/message/88699 Mute This Topic: https://groups.io/mt/90392492/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 Fri May 10 11:02:38 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+88701+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+88701+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1649676324; cv=none; d=zohomail.com; s=zohoarc; b=gPjtqYpErEv0VcjeZO1mLqApINLZ9FmKJ/slHQwFkiQwa23qYXWR9pLIy5hNvLOFd+WH+bULqT+ojXZxdLVM6YgAIO1Yf8Wi4PGPS34lLWWhVInzEk0it8Ju5iAkh1fQxZ9qJ90BPWnp5WWidwnAlnjPgqE3WV3Xd8W3GeKpB64= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1649676324; 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=OfLnABciYDRJjHCVYycpJNmy9TZ1rF04gV7lgVtb15c=; b=h3atBpsVBQWPokNeJxRnJ4M0EYwkBh4BA6ZNDR2Qe20vvm+uZph21gkgAfSX9r2uwA5hTJCXM7lPMQktnHZomOfbWNRsSCtCAvaIpcZXzTTD3ECXcFgANHBHSBWXvGEuGDww7F4NJ76T+054nnbm8gA28t3+wRv1a5jHg9XliN4= 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+88701+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 1649676324650190.8962116195621; Mon, 11 Apr 2022 04:25:24 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id kdwHYY1788612x6AKrMYoAjY; Mon, 11 Apr 2022 04:25:24 -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.web08.27909.1649676323180334548 for ; Mon, 11 Apr 2022 04:25:23 -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-426-DZnWOSYgOHKHWNLlf3-Ulw-1; Mon, 11 Apr 2022 07:25:17 -0400 X-MC-Unique: DZnWOSYgOHKHWNLlf3-Ulw-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 2A8E786B8A5; Mon, 11 Apr 2022 11:25:17 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EF57F40E80E6; Mon, 11 Apr 2022 11:25:16 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7FF731800915; Mon, 11 Apr 2022 13:24:57 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Oliver Steffen , Pawel Polawski , Jian J Wang , Xiaoyu Lu , Jiewen Yao , Guomin Jiang , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH v3 8/8] CryptoPkg/UnitTest: fix DH testcase Date: Mon, 11 Apr 2022 13:24:57 +0200 Message-Id: <20220411112457.506101-9-kraxel@redhat.com> In-Reply-To: <20220411112457.506101-1-kraxel@redhat.com> References: <20220411112457.506101-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: avtEhwd03KZPUQOI1KLVNOOhx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1649676324; bh=Vs43WRqu7CZfINwdlQoyaeVcTwnvYF5UFJJwZNgj9mI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=FEBHrxToIaNkqMyWR6DSBGaaashfQNPEOiCet9BrW9Qw3MjHzpq98Uq8epgO3fsZ7xj mxTHH8vHpeaUSz3+bY05rwABC+jslzejzVVqebBsCOP4OQoDRETMXRxUGetu/858na+Ze 2VtWnfJplLh9/AWl0dKHKselH8DEboc2qSQ= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1649676325439100021 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 Reviewed-by: Jiewen Yao --- 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 (#88701): https://edk2.groups.io/g/devel/message/88701 Mute This Topic: https://groups.io/mt/90392494/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-