From nobody Sun Feb 8 22:08:23 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+107489+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+107489+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1691037501; cv=none; d=zohomail.com; s=zohoarc; b=nsLUgS+QT9peGEKnGSHVmRZmRO0XHw5tbpOG14AOhXf4ylSsbRgV7pO2m7vfQwoizaWRbmLfIRJorD8XiEdeduaK9U/MBGjMX84tsNFHZX4C6nfDCzbfRWxKVCUMmg/RkHsrXaPueb3xyAIbps0qLGb4iX2/v2ZmVII4nk20ctc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691037501; 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=adlNoTbrqFUHbiovlOf7PjeRHvpVhDbd18A95jj3AuY=; b=MwUWm1N7c3h4bnzCGsX6I/laM/DIZHMjLo1C6iOB3/VdM80NuyUfKp2pnXq0s8Gy7PcVUgCP0UyWgxD5nOicXnegHGpW7aJ3xULTIVIIyw008vCkkC+mDcbqLS1qQ67heUBYO4YmffRAHpRzlYbTzkHm0lASuylbHyND6Ff+El8= 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+107489+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 1691037501072881.2646612114858; Wed, 2 Aug 2023 21:38:21 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=cmdbvum6i8XMlAd5BGjZb0BB8l8/X3m1AaJoPr05v30=; 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=1691037500; v=1; b=JEbkftCwpvnnbt51sbrul4t9lv0Gno6rFumbueDboHxMDQgiuThWCYTgsdehasPpFyMHbYAG vz7/u2f+1PB4PtuC7/NOKK2L1kwSTgNS+EcuPE1ikb2GaOZ+KdZQcHtGQ6zUMHaZ9edVa7OOqVQ zuyqAaVK+WlEElZhQ1ML0MzQ= X-Received: by 127.0.0.2 with SMTP id Q6NCYY1788612xryswlvZ86J; Wed, 02 Aug 2023 21:38:20 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.7486.1691037497004267910 for ; Wed, 02 Aug 2023 21:38:20 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="456141102" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="456141102" 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:38:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="794848023" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="794848023" 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:38:18 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Gerd Hoffmann , Jiewen Yao , Xiaoyu Lu , Guomin Jiang Subject: [edk2-devel] [PATCH V2 08/29] CryptoPkg/BaseCryptLib: drop BIO_* dummy functions Date: Thu, 3 Aug 2023 12:37:26 +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: avEIaGXiRyHWKg4DmH8Dp8tOx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1691037502534100027 Content-Type: text/plain; charset="utf-8" From: Gerd Hoffmann openssl 3.0 requires a functional BIO_sprintf() implementation. Signed-off-by: Gerd Hoffmann Cc: Jiewen Yao Cc: Xiaoyu Lu Cc: Guomin Jiang --- .../Library/BaseCryptLib/SysCall/CrtWrapper.c | 27 ------------------- .../SysCall/UnitTestHostCrtWrapper.c | 25 ----------------- 2 files changed, 52 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c b/CryptoPk= g/Library/BaseCryptLib/SysCall/CrtWrapper.c index b65d29485b..6d7ac3efdc 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c @@ -472,33 +472,6 @@ fwrite ( return 0; } =20 -// -// -- Dummy OpenSSL Support Routines -- -// - -int -BIO_printf ( - void *bio, - const char *format, - ... - ) -{ - return 0; -} - -int -BIO_snprintf ( - char *buf, - size_t n, - const char *format, - ... - ) -{ - // Because the function does not actually print anything to buf, it retu= rns -1 as error. - // Otherwise, the consumer may think that the buf is valid and parse the= buffer. - return -1; -} - #ifdef __GNUC__ =20 typedef diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.= c b/CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c index 066d53e4fa..244e57437e 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/UnitTestHostCrtWrapper.c @@ -72,31 +72,6 @@ sscanf ( return 0; } =20 -// -// -- Dummy OpenSSL Support Routines -- -// - -int -BIO_printf ( - void *bio, - const char *format, - ... - ) -{ - return 0; -} - -int -BIO_snprintf ( - char *buf, - size_t n, - const char *format, - ... - ) -{ - return 0; -} - uid_t getuid ( void --=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 (#107489): https://edk2.groups.io/g/devel/message/107489 Mute This Topic: https://groups.io/mt/100520583/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-