File 0640-crypto-Remove-untested-engine-support-on-Windows.patch of Package erlang

From 49ee18d8c2aef85d782d568c201734cc50724eb8 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson <sverker@erlang.org>
Date: Wed, 11 Mar 2026 16:19:24 +0100
Subject: [PATCH] crypto: Remove untested engine support on Windows

* Got crashes on Windows in ssl_engine_SUITE:private_key
* crypto engine_SUITE disabled for Windows since 2018
* Hopefully no one using engine on Windows
---
 lib/crypto/c_src/openssl_config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/crypto/c_src/openssl_config.h b/lib/crypto/c_src/openssl_config.h
index f525aeccc1..d894587082 100644
--- a/lib/crypto/c_src/openssl_config.h
+++ b/lib/crypto/c_src/openssl_config.h
@@ -384,7 +384,7 @@
 /* If OPENSSL_NO_EC is set, there will be an error in ec.h included from engine.h
    So if EC is disabled, you can't use Engine either....
 */
-#if !defined(OPENSSL_NO_ENGINE)
+#if !defined(OPENSSL_NO_ENGINE) && !defined(__WIN32__)
 # define HAS_ENGINE_SUPPORT
 #endif
 #endif
-- 
2.51.0

openSUSE Build Service is sponsored by