summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Strogin <steils@gentoo.org>2019-07-01 14:17:51 +0300
committerStefan Strogin <steils@gentoo.org>2019-07-01 14:57:37 +0300
commit76c59c377a3f2cef432012075ebd9b2cec80102c (patch)
tree7d418f1de9b15bca938cd5c9399427b807bde73d /net-libs/libssh/files
parentdev-util/howdoi: version bump 1.2.1 (diff)
downloadgentoo-76c59c377a3f2cef432012075ebd9b2cec80102c.tar.gz
gentoo-76c59c377a3f2cef432012075ebd9b2cec80102c.tar.bz2
gentoo-76c59c377a3f2cef432012075ebd9b2cec80102c.zip
net-libs/libssh: add patch for LibreSSL
Closes: https://bugs.gentoo.org/688974 Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Stefan Strogin <steils@gentoo.org>
Diffstat (limited to 'net-libs/libssh/files')
-rw-r--r--net-libs/libssh/files/libssh-0.9.0-libressl.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/net-libs/libssh/files/libssh-0.9.0-libressl.patch b/net-libs/libssh/files/libssh-0.9.0-libressl.patch
new file mode 100644
index 000000000000..355e832308e2
--- /dev/null
+++ b/net-libs/libssh/files/libssh-0.9.0-libressl.patch
@@ -0,0 +1,33 @@
+From 08bdd5b26388f92867ab03e36d73e32481faed88 Mon Sep 17 00:00:00 2001
+From: Stefan Strogin <steils@gentoo.org>
+Date: Mon, 1 Jul 2019 13:35:09 +0300
+Subject: [PATCH] libcrypto: fix compilation with LibreSSL
+
+LibreSSL does not support FIPS, so do not check it.
+
+Signed-off-by: Stefan Strogin <steils@gentoo.org>
+Upstream-Status: Submitted
+[https://www.libssh.org/archive/libssh/2019-07/0000000.html]
+---
+ include/libssh/libcrypto.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h
+index 541912b5..1a1df635 100644
+--- a/include/libssh/libcrypto.h
++++ b/include/libssh/libcrypto.h
+@@ -112,7 +112,11 @@ typedef BN_CTX* bignum_CTX;
+
+
+ /* Returns true if the OpenSSL is operating in FIPS mode */
++#ifndef LIBRESSL_VERSION_NUMBER
+ #define ssh_fips_mode() (FIPS_mode() != 0)
++#else
++#define ssh_fips_mode() false
++#endif
+
+ #endif /* HAVE_LIBCRYPTO */
+
+--
+2.22.0
+