From de549fee1b7fd2ca28d71fedb15c016040b97384 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 12 Sep 2018 07:07:07 +0200 Subject: [PATCH] libssh2: Patch for OPENSSL_NO_ENGINE --- packages/libssh2/src-openssl.h.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/libssh2/src-openssl.h.patch diff --git a/packages/libssh2/src-openssl.h.patch b/packages/libssh2/src-openssl.h.patch new file mode 100644 index 0000000000..d03226a8a2 --- /dev/null +++ b/packages/libssh2/src-openssl.h.patch @@ -0,0 +1,19 @@ +diff -u -r ../libssh2-1.8.0/src/openssl.h ./src/openssl.h +--- ../libssh2-1.8.0/src/openssl.h 2016-02-17 21:59:57.000000000 +0000 ++++ ./src/openssl.h 2018-09-12 04:35:42.346414320 +0000 +@@ -226,10 +226,15 @@ + #define libssh2_hmac_cleanup(ctx) HMAC_cleanup(ctx) + #endif + ++#ifdef OPENSSL_NO_ENGINE ++#define libssh2_crypto_init() \ ++ OpenSSL_add_all_algorithms() ++#else + #define libssh2_crypto_init() \ + OpenSSL_add_all_algorithms(); \ + ENGINE_load_builtin_engines(); \ + ENGINE_register_all_complete() ++#endif + + #define libssh2_crypto_exit() +