File 0401-crypto-Let-otp_test_engine-only-add-what-is-needed.patch of Package erlang
From 734ca41ae58ea5cf6d73cccb6ec6e37868991642 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 29 Aug 2018 12:21:22 +0200
Subject: [PATCH] crypto: Let otp_test_engine only add what is needed
OpenSSL_add_all_algorithms hangs on some test machines
---
lib/crypto/c_src/otp_test_engine.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/crypto/c_src/otp_test_engine.c b/lib/crypto/c_src/otp_test_engine.c
index b6c9067964..34c825059f 100644
--- a/lib/crypto/c_src/otp_test_engine.c
+++ b/lib/crypto/c_src/otp_test_engine.c
@@ -64,7 +64,8 @@ static int test_init(ENGINE *e) {
printf("OTP Test Engine Initializatzion!\r\n");
/* Load all digest and cipher algorithms. Needed for password protected private keys */
- OpenSSL_add_all_algorithms();
+ OpenSSL_add_all_ciphers();
+ OpenSSL_add_all_digests();
return 111;
}
--
2.16.4