changeset 720:100b1ba8672d

network/libssh: fix build with libressl
author David Demelier <markand@malikania.fr>
date Mon, 05 Aug 2019 12:41:20 +0200
parents a70abf476771
children 034a2a62a9f8
files network/libssh/libssh.sh network/libssh/patch-libressl.patch
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/network/libssh/libssh.sh	Mon Aug 05 12:40:35 2019 +0200
+++ b/network/libssh/libssh.sh	Mon Aug 05 12:41:20 2019 +0200
@@ -36,6 +36,7 @@
 	# ld.lld: error: undefined symbol: argp_parse
 	# >>> referenced by ssh_server_fork.c
 	# >>>               CMakeFiles/ssh_server_fork.dir/ssh_server_fork.c.o:(main)
+	patch -p0 < ../patch-libressl.patch
 	mkdir build && cd build
 	cmake .. \
 		-DBUILD_SHARED_LIBS=On \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/network/libssh/patch-libressl.patch	Mon Aug 05 12:41:20 2019 +0200
@@ -0,0 +1,11 @@
+--- include/libssh/libcrypto.h.orig	2019-08-05 09:41:00.104573122 +0000
++++ include/libssh/libcrypto.h	2019-08-05 09:41:08.272573373 +0000
+@@ -112,7 +112,7 @@
+ 
+ 
+ /* Returns true if the OpenSSL is operating in FIPS mode */
+-#define ssh_fips_mode() (FIPS_mode() != 0)
++#define ssh_fips_mode() false
+ 
+ #endif /* HAVE_LIBCRYPTO */
+