]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
MSVC: Add dllexport to OSSL_provider_init
authorVitaly Chikunov <vt@altlinux.org>
Fri, 10 Dec 2021 14:46:18 +0000 (17:46 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sat, 11 Dec 2021 16:45:14 +0000 (19:45 +0300)
`OSSL_provider_init' requires dllexport attribute to be visible (and thus
loadable) in DLL.

Link: https://github.com/openssl/openssl/issues/17203
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
gost_prov.c

index e7fdd967d2b0856fc197929694c7b4f8b98b7d94..390275c5eaaad4ef85ba41eef76f5a12d58884ec 100644 (file)
@@ -143,6 +143,7 @@ struct prov_ctx_st {
 # define OSSL_provider_init GOST_provider_init
 #endif
 
+OPENSSL_EXPORT
 int OSSL_provider_init(const OSSL_CORE_HANDLE *core,
                        const OSSL_DISPATCH *in,
                        const OSSL_DISPATCH **out,