ports/security/libssh/files/patch-src_libcrypto-compat.h
Mikhail Teterin a0e48abe9f Remove any mention of SSH1 -- it is no longer provided by the code,
but trying to enable the port's option causes the port to fail to
package.

Add a shim to allow compiling against LibreSSL

PR:		233346, 232437
Submitted by:	Arrigo Marchiori, Franco Fichtner
Approved by:	maintainer timeout
2019-01-25 21:02:27 +00:00

12 lines
378 B
C

--- src/libcrypto-compat.h 2018-10-19 05:11:14 UTC
+++ src/libcrypto-compat.h
@@ -2,7 +2,8 @@
#define LIBCRYPTO_COMPAT_H
#include <openssl/opensslv.h>
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
+ (defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x20700000L)
#include <openssl/rsa.h>
#include <openssl/dsa.h>