From nobody Tue Dec 16 07:08:12 2025 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+107365+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+107365+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1690526527; cv=none; d=zohomail.com; s=zohoarc; b=OM2Y+jYnX8mvKGU6CEPz42m1O4pnMrFikcwu2cqDNdTK/hnPJ5UbiXzsJzRrzdZleSUhokaHskZPW9QZrIoMJR5n+J6JlEWlVGk6FUiCcBtqR4eLzdkClTFdevqUsD+cDPMMYq8MX1+IVImbK3qvhdIit3K8TfTnjdq3DikctiI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690526527; 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=IM9LMq6jz5queVHIoXMDTWZRiC1lDdYlIj+RM/AIb/0=; b=bWv8XOjSM4pPb3FP+zVW5fKUnasu7to+UNw4m6Kz+GXrn0E7eA2ZXSD4krQJAcLlRCKyPnqmP4/D7sAF4awgBnsHlsEk2H0fJXuPFnM7+5a98sFm119cFf907iG34J/4eqz+7zHahceiLjDlHh9qrTUG6PoW1HgCfQrEsHjeToc= 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+107365+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 1690526527802901.472365714329; Thu, 27 Jul 2023 23:42:07 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=tEXqcBQo2ZahnoomYDCwhEO5twPCHRU03EGzp8JWsAE=; c=relaxed/simple; d=groups.io; h=X-Received:X-Received:X-IronPort-AV:X-IronPort-AV:X-Received:X-ExtLoop1:X-IronPort-AV:X-IronPort-AV:X-Received: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:X-Gm-Message-State:Content-Transfer-Encoding; s=20140610; t=1690526527; v=1; b=NocCelmnHHGV9vxN+90jc+VUTybqTMO80Kkk8NnmEYA3FuseC6A454M6VccGU7PyU3bKOkIA 8uYhb8ecaWkBuasEptfdHiZ7/xcdyJfdT8bhPTMjXyNs5uNDFoZDSJkOnFK0340lY3Qdz09uB10 bMcn+mhiH31uW5GNrNdYfCHI= X-Received: by 127.0.0.2 with SMTP id GXnTYY1788612xdZg8AbgsEz; Thu, 27 Jul 2023 23:42:07 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.27105.1690526527007113995 for ; Thu, 27 Jul 2023 23:42:07 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="434804468" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="434804468" X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 23:41:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="762496317" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="762496317" X-Received: from liyi4-desktop.ccr.corp.intel.com ([10.239.153.10]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jul 2023 23:41:52 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Yi Li , Jiewen Yao , Xiaoyu Lu , Guomin Jiang Subject: [edk2-devel] [PATCH 27/29] CryptoPkg: remove strcmp to syscall Date: Fri, 28 Jul 2023 14:40:13 +0800 Message-Id: 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: tj3k1sOqxAH6iOod7cyHRTQRx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1690526528354100001 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 (#107365): https://edk2.groups.io/g/devel/message/107365 Mute This Topic: https://groups.io/mt/100406072/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-