From 1ca11da3479fcc98ed8343c9d83684a87a0ee052 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Sun, 5 Dec 2021 11:07:11 +0300 Subject: [PATCH] MSVC: Fix 'no OPENSSL_Applink' error Error message: OPENSSL_Uplink(00007FF9FB00F600,08): no OPENSSL_Applink Link: https://www.openssl.org/docs/faq.html#PROG3 Signed-off-by: Vitaly Chikunov --- test_ciphers.c | 5 +++++ test_context.c | 5 +++++ test_curves.c | 5 +++++ test_derive.c | 5 +++++ test_digest.c | 5 +++++ test_gost2814789.c | 5 +++++ test_gost89.c | 5 +++++ test_keyexpimp.c | 3 +++ test_params.c | 5 +++++ test_sign.c | 5 +++++ test_tls.c | 5 +++++ test_tlstree.c | 5 +++++ 12 files changed, 58 insertions(+) diff --git a/test_ciphers.c b/test_ciphers.c index 2e923a7..6038498 100644 --- a/test_ciphers.c +++ b/test_ciphers.c @@ -5,6 +5,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include #include #include diff --git a/test_context.c b/test_context.c index 293f921..d9ef579 100644 --- a/test_context.c +++ b/test_context.c @@ -5,6 +5,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include #include #include diff --git a/test_curves.c b/test_curves.c index 344a50e..865ee8d 100644 --- a/test_curves.c +++ b/test_curves.c @@ -5,6 +5,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include "gost_lcl.h" #include #include diff --git a/test_derive.c b/test_derive.c index 09b01ac..08577cd 100644 --- a/test_derive.c +++ b/test_derive.c @@ -7,6 +7,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include #include #include diff --git a/test_digest.c b/test_digest.c index 9b02198..68c0e32 100644 --- a/test_digest.c +++ b/test_digest.c @@ -7,6 +7,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include #include #include diff --git a/test_gost2814789.c b/test_gost2814789.c index 20e3fe0..211e577 100644 --- a/test_gost2814789.c +++ b/test_gost2814789.c @@ -7,6 +7,11 @@ * This file is distributed under the same license as OpenSSL * ==================================================================== */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include #include diff --git a/test_gost89.c b/test_gost89.c index d7f0c96..b14d5e4 100644 --- a/test_gost89.c +++ b/test_gost89.c @@ -7,6 +7,11 @@ * No OpenSSL libraries required to compile and use * * this code * **********************************************************************/ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include #include "gost89.h" #include diff --git a/test_keyexpimp.c b/test_keyexpimp.c index 0fa549b..0e61b6f 100644 --- a/test_keyexpimp.c +++ b/test_keyexpimp.c @@ -5,6 +5,9 @@ * See https://www.openssl.org/source/license.html for details */ #ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) # include # include #else diff --git a/test_params.c b/test_params.c index e0947e2..1141933 100644 --- a/test_params.c +++ b/test_params.c @@ -7,6 +7,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include "e_gost_err.h" #include "gost_lcl.h" #include diff --git a/test_sign.c b/test_sign.c index e18acc1..50b6643 100644 --- a/test_sign.c +++ b/test_sign.c @@ -7,6 +7,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include "gost_lcl.h" #include #include diff --git a/test_tls.c b/test_tls.c index d016e62..1e805c3 100644 --- a/test_tls.c +++ b/test_tls.c @@ -8,6 +8,11 @@ * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif #include "e_gost_err.h" #include "gost_lcl.h" #include diff --git a/test_tlstree.c b/test_tlstree.c index 1c4ecb8..dece814 100644 --- a/test_tlstree.c +++ b/test_tlstree.c @@ -4,6 +4,11 @@ * Contents licensed under the terms of the OpenSSL license * See https://www.openssl.org/source/license.html for details */ +#ifdef _MSC_VER +# pragma warning(push, 3) +# include +# pragma warning(pop) +#endif # include # include # include -- 2.39.5