File 1219-Avoid-defining-test-functions-for-OpenSSL-engine-whe.patch of Package erlang

From 37f93ea6ce9491e6242757e205f6cad2b56b0911 Mon Sep 17 00:00:00 2001
From: Erwan Le Pape <erwan.le-pape@tehtris.com>
Date: Thu, 4 Mar 2021 14:01:44 +0100
Subject: [PATCH] Avoid defining test functions for OpenSSL engine when it was
 compiled without the required EC support

---
 lib/crypto/c_src/otp_test_engine.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/crypto/c_src/otp_test_engine.c b/lib/crypto/c_src/otp_test_engine.c
index 6416925b05..f5fff85b14 100644
--- a/lib/crypto/c_src/otp_test_engine.c
+++ b/lib/crypto/c_src/otp_test_engine.c
@@ -343,8 +343,6 @@ int pem_passwd_cb_fun(char *buf, int size, int rwflag, void *password)
     }
 }
 
-#endif
-
 #if defined(FAKE_RSA_IMPL)
 /* RSA sign. This returns a fixed string so the test case can test that it was called
    instead of the cryptolib default RSA sign */
@@ -412,3 +410,5 @@ static int test_rsa_free(RSA *rsa)
 }
 
 #endif /* if defined(FAKE_RSA_IMPL) */
+
+#endif /* if defined(HAVE_EC) */
-- 
2.26.2

openSUSE Build Service is sponsored by