[PATCH 15/24] CryptoPkg/openssl: add dummy file store


Gerd Hoffmann
 

Needed to link openssl 3.0 with storage management code excluded.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
CryptoPkg/Library/OpensslLib/ossl_store.c | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/CryptoPkg/Library/OpensslLib/ossl_store.c b/CryptoPkg/Library/OpensslLib/ossl_store.c
index 29e1506048e3..1ba9fe790a2f 100644
--- a/CryptoPkg/Library/OpensslLib/ossl_store.c
+++ b/CryptoPkg/Library/OpensslLib/ossl_store.c
@@ -6,6 +6,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent

**/

+#include <openssl/store.h> /* The OSSL_STORE_INFO type numbers */
+
/*
* This function is cleanup ossl store.
*
@@ -15,3 +17,12 @@ void ossl_store_cleanup_int(void)
{
}

+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 },
+};
--
2.33.1