From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id A0CDC7803DE for ; Fri, 28 Jul 2023 06:41:53 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ny1lusq2FvJTZ4ShQDZG6W6dTcT1AORIBaKlQsNjXXM=; 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=1690526512; v=1; b=HqzT/6u9Os4a9CRkm6PLcr9xJq4AlpIqvyGFRe1WC58ldM6KcDgVMIFgXoMOyziPvlzQjq4A ljT3yTLs6K3cClynkxPb43icKgf16P70/0Vaz/X3EBsfVM8zCCCzssUfTwLXLgvKpE4lKUPi9tF 9SOCPLCFdWaM841HUd4FtvLU= X-Received: by 127.0.0.2 with SMTP id dlRfYY7687511xMGsO4bvNGX; Thu, 27 Jul 2023 23:41:52 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.27096.1690526511892041911 for ; Thu, 27 Jul 2023 23:41:51 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="434804317" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="434804317" 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:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10784"; a="762496063" X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="scan'208";a="762496063" 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:06 -0700 From: "Li, Yi" To: devel@edk2.groups.io Cc: Gerd Hoffmann , Yi Li , Jiewen Yao , Xiaoyu Lu , Guomin Jiang Subject: [edk2-devel] [PATCH 12/29] CryptoPkg/openssl: store dummy update for openssl 3.0 Date: Fri, 28 Jul 2023 14:39:58 +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: 0cJnhfojX1c6CmQhbVL2tK5Ex7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="HqzT/6u9"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Gerd Hoffmann Signed-off-by: Gerd Hoffmann Signed-off-by: Yi Li Cc: Jiewen Yao Cc: Xiaoyu Lu Cc: Guomin Jiang --- CryptoPkg/Library/OpensslLib/ossl_store.c | 156 ++++++++++++++++++++++ 1 file changed, 156 insertions(+) diff --git a/CryptoPkg/Library/OpensslLib/ossl_store.c b/CryptoPkg/Library/OpensslLib/ossl_store.c index b4297395d7..f1e1b8b60f 100644 --- a/CryptoPkg/Library/OpensslLib/ossl_store.c +++ b/CryptoPkg/Library/OpensslLib/ossl_store.c @@ -6,6 +6,10 @@ SPDX-License-Identifier: BSD-2-Clause-Patent **/ +#include +#include +#include + /* * This function is cleanup ossl store. * @@ -17,3 +21,155 @@ ossl_store_cleanup_int ( ) { } + +int +ossl_store_loader_store_cache_flush ( + OSSL_LIB_CTX *libctx + ) +{ + return 1; +} + +int +ossl_store_loader_store_remove_all_provided ( + OSSL_PROVIDER *prov + ) +{ + return 1; +} + +static void * +file_open ( + void *provctx, + const char *uri + ) +{ + return NULL; +} + +const OSSL_DISPATCH ossl_file_store_functions[] = { + { OSSL_FUNC_STORE_OPEN, (void (*)(void)) file_open }, + { 0, NULL }, +}; + +OSSL_STORE_CTX * +OSSL_STORE_open ( + const char *uri, + const UI_METHOD *ui_method, + void *ui_data, + OSSL_STORE_post_process_info_fn post_process, + void *post_process_data + ) +{ + return NULL; +} + +OSSL_STORE_CTX * +OSSL_STORE_open_ex ( + const char *uri, + OSSL_LIB_CTX *libctx, + const char *propq, + const UI_METHOD *ui_method, + void *ui_data, + const OSSL_PARAM params[], + OSSL_STORE_post_process_info_fn post_process, + void *post_process_data + ) +{ + return NULL; +} + +int +OSSL_STORE_INFO_get_type ( + const OSSL_STORE_INFO *info + ) +{ + return 0; +} + +int +OSSL_STORE_find ( + OSSL_STORE_CTX *ctx, + const OSSL_STORE_SEARCH *search + ) +{ + return 0; +} + +OSSL_STORE_INFO * +OSSL_STORE_load ( + OSSL_STORE_CTX *ctx + ) +{ + return NULL; +} + +const char * +OSSL_STORE_INFO_get0_NAME ( + const OSSL_STORE_INFO *info + ) +{ + return NULL; +} + +X509 * +OSSL_STORE_INFO_get0_CERT ( + const OSSL_STORE_INFO *info + ) +{ + return NULL; +} + +X509_CRL * +OSSL_STORE_INFO_get0_CRL ( + const OSSL_STORE_INFO *info + ) +{ + return NULL; +} + +int +OSSL_STORE_eof ( + OSSL_STORE_CTX *ctx + ) +{ + return 0; +} + +int +OSSL_STORE_error ( + OSSL_STORE_CTX *ctx + ) +{ + return 0; +} + +int +OSSL_STORE_close ( + OSSL_STORE_CTX *ctx + ) +{ + return 0; +} + +void +OSSL_STORE_INFO_free ( + OSSL_STORE_INFO *info + ) +{ +} + +OSSL_STORE_SEARCH * +OSSL_STORE_SEARCH_by_name ( + X509_NAME *name + ) +{ + return NULL; +} + +void +OSSL_STORE_SEARCH_free ( + OSSL_STORE_SEARCH *search + ) +{ +} -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#107351): https://edk2.groups.io/g/devel/message/107351 Mute This Topic: https://groups.io/mt/100406055/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-