From d977a26ed8ca5066d4d72a6d73f1669c8619f4a1 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 6 Dec 2021 20:54:17 +0100 Subject: [PATCH] Make OSSL_provider_init() OPENSSL_EXPORT, not just extern On non-Windows systems, there's no difference at all. On Windows systems, __declspec(dllexport) is added, which ensures it gets exported no matter what. Fixes #17203 Reviewed-by: Dmitry Belyavskiy Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17215) --- include/openssl/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openssl/core.h b/include/openssl/core.h index 3356ef20884..9683ac70a55 100644 --- a/include/openssl/core.h +++ b/include/openssl/core.h @@ -195,7 +195,7 @@ typedef int (OSSL_provider_init_fn)(const OSSL_CORE_HANDLE *handle, # pragma names save # pragma names uppercase,truncated # endif -extern OSSL_provider_init_fn OSSL_provider_init; +OPENSSL_EXPORT OSSL_provider_init_fn OSSL_provider_init; # ifdef __VMS # pragma names restore # endif -- 2.47.2