From: Richard Levitte Date: Mon, 6 Dec 2021 19:54:17 +0000 (+0100) Subject: Make OSSL_provider_init() OPENSSL_EXPORT, not just extern X-Git-Tag: openssl-3.2.0-alpha1~3229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d977a26ed8ca5066d4d72a6d73f1669c8619f4a1;p=thirdparty%2Fopenssl.git 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) --- 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