From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web10.1375.1617145463989694654 for ; Tue, 30 Mar 2021 16:04:24 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: michael.d.kinney@intel.com) IronPort-SDR: shs4HgV3sFReZAGCE3fh9qXBHBPeFpMj1vPzkEY7v8D6hprZCyMTZ+o7CwzLd3cjN4FswEtlh0 tsjRHz909rdA== X-IronPort-AV: E=McAfee;i="6000,8403,9939"; a="171282413" X-IronPort-AV: E=Sophos;i="5.81,291,1610438400"; d="scan'208";a="171282413" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 16:04:22 -0700 IronPort-SDR: dt6u1yolOuhxIOKDnpVVKJz3xKJLRVC2daV3lO0/NTiHMWGRO5AEKxxZEdv8x9IfMyTchZpaZQ JVMKS07+RQXg== X-IronPort-AV: E=Sophos;i="5.81,291,1610438400"; d="scan'208";a="455222109" Received: from mdkinney-mobl2.amr.corp.intel.com ([10.251.11.21]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 16:04:22 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Subject: [Patch 3/3] CryptoPkg/Private/Protocol/Crypto.h: Remove duplicate function type Date: Tue, 30 Mar 2021 16:04:05 -0700 Message-Id: <20210330230405.1162-4-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20210330230405.1162-1-michael.d.kinney@intel.com> References: <20210330230405.1162-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3287 Remove duplicate declaration of the function prototype EDKII_CRYPTO_RSA_GET_PUBLIC_KEY_FROM_X509. Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang Signed-off-by: Michael D Kinney --- CryptoPkg/Private/Protocol/Crypto.h | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/CryptoPkg/Private/Protocol/Crypto.h b/CryptoPkg/Private/Protocol/Crypto.h index c399e0d67ae0..17930a77a60e 100644 --- a/CryptoPkg/Private/Protocol/Crypto.h +++ b/CryptoPkg/Private/Protocol/Crypto.h @@ -2,7 +2,7 @@ This Protocol provides Crypto services to DXE modules Copyright (C) Microsoft Corporation. All rights reserved. - Copyright (c) 2020, Intel Corporation. All rights reserved.
+ Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -1106,32 +1106,6 @@ BOOLEAN IN UINTN SigSize ); -/** - Retrieve the RSA Public Key from one DER-encoded X509 certificate. - - If Cert is NULL, then return FALSE. - If RsaContext is NULL, then return FALSE. - If this interface is not supported, then return FALSE. - - @param[in] Cert Pointer to the DER-encoded X509 certificate. - @param[in] CertSize Size of the X509 certificate in bytes. - @param[out] RsaContext Pointer to new-generated RSA context which contain the retrieved - RSA public key component. Use RsaFree() function to free the - resource. - - @retval TRUE RSA Public Key was retrieved successfully. - @retval FALSE Fail to retrieve RSA public key from X509 certificate. - @retval FALSE This interface is not supported. - -**/ -typedef -BOOLEAN -(EFIAPI *EDKII_CRYPTO_RSA_GET_PUBLIC_KEY_FROM_X509) ( - IN CONST UINT8 *Cert, - IN UINTN CertSize, - OUT VOID **RsaContext - ); - /** Allocates and initializes one RSA context for subsequent use. -- 2.31.1.windows.1