From nobody Tue Feb 10 05:27:26 2026 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+107508+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+107508+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1691037567; cv=none; d=zohomail.com; s=zohoarc; b=D/RXL4apCJahqpGZbtdfUKITyPp1QasZcpEShA0Y0XhLKs3ja5mbHF1OwC2z1zR8eNLfKAlTnE9pUVlSjn13o5iILKdmXKdaGGbTB2IYufQFbwBRBAFUsC8bL2iFwHwNU0Z3MF8zDIOolNdtBf4X4ty2ALC8jrUruPRGQ6ri6zE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691037567; h=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=ABoH8u522vbOh7lULiBgQSshjwMIq6G0ieFOoeCNHWo=; b=gXpWKtJ4G476Gwg0wFjNg/rbTZ4IKww1MxajpxMfJTT6+vHoLHIkiyXgPR3mkhrWQwv6adA5lHgzXSB/TMLfXPiZC0UmrdDqrfeniHq6ex1FuZ6A6tGsqTyGS/LtlppExwSs1T5w6WnfKcn/1AfBEl44J9IGwNo6VvvraUV04fg= 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+107508+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 1691037567858921.7770654891082; Wed, 2 Aug 2023 21:39:27 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=4AE5ybKcNy+HfI1RSGsXcAWm5vAxTd9XQ0qA53fbS1I=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1691037566; v=1; b=ix/4Mpy5VBkEvvrUrQAUwffM0T2CEYrvXYyAW4eESIPzZgh13QbWWuPchamRjqRrgruE5LSJ UblDGclga0VS5xXN9OCFHcXfCTX8Zia+5ju5canM3zznCn1+tIWaQQTQJvLzsxqcjeBqAtKiVcy jLw2nBiwLEdtU6odQfoHwcD8= X-Received: by 127.0.0.2 with SMTP id q7y0YY1788612xKxggOzNSC9; Wed, 02 Aug 2023 21:39:26 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.7313.1691037564440257345 for ; Wed, 02 Aug 2023 21:39:26 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="456141253" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="456141253" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 21:39:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="794848122" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="794848122" X-Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.10]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 21:39:18 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Yi Li , Jiewen Yao , Xiaoyu Lu , Guomin Jiang Subject: [edk2-devel] [PATCH V2 27/29] CryptoPkg: remove strcmp to syscall Date: Thu, 3 Aug 2023 12:37:45 +0800 Message-Id: <328b3e3cc2bb027d3400e025c6df9832643c3adf.1691031203.git.yi1.li@intel.com> In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk 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,yi1.li@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: doRL4NjhM0eWi95Z10x60aNZx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1691037568920100005 Content-Type: text/plain; charset="utf-8" In rare cases the platform may not provide the full IntrinsicLib. But openssl30 build always require strcmp, provide this function by moving it into CrtWrapper.c. Signed-off-by: Yi Li Cc: Jiewen Yao Cc: Xiaoyu Lu Cc: Guomin Jiang --- CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c | 9 +++++++++ CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c b/CryptoPk= g/Library/BaseCryptLib/SysCall/CrtWrapper.c index 6d7ac3efdc..37cdecc9bd 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c @@ -275,6 +275,15 @@ strcpy ( return strDest; } =20 +int +strcmp ( + const char *s1, + const char *s2 + ) +{ + return (int)AsciiStrCmp (s1, s2); +} + // // -- Character Classification Routines -- // diff --git a/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c b/CryptoPkg/= Library/IntrinsicLib/MemoryIntrinsics.c index 611e9fd773..9b091f1901 100644 --- a/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c +++ b/CryptoPkg/Library/IntrinsicLib/MemoryIntrinsics.c @@ -63,12 +63,3 @@ memcmp ( { return (int)CompareMem (buf1, buf2, count); } - -int -strcmp ( - const char *s1, - const char *s2 - ) -{ - return (int)AsciiStrCmp (s1, s2); -} --=20 2.31.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107508): https://edk2.groups.io/g/devel/message/107508 Mute This Topic: https://groups.io/mt/100520612/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-