freebsd-ports/net/netatalk3/files/patch-etc_uams_openssl__compat.h
Joe Marcus Clarke 2405b1faa9 Fix the build with libressl > 2.7.0.
PR:		227860
Submitted by:	brnrd
2018-05-11 20:14:54 +00:00

11 lines
467 B
C

--- etc/uams/openssl_compat.h.orig 2016-06-06 11:21:51 UTC
+++ etc/uams/openssl_compat.h
@@ -11,7 +11,7 @@
#ifndef OPENSSL_COMPAT_H
#define OPENSSL_COMPAT_H
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
inline static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
{
/* If the fields p and g in d are NULL, the corresponding input