mirror of
https://git.freebsd.org/ports.git
synced 2025-05-13 15:51:51 -04:00
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
12 lines
378 B
C
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>
|