aboutsummaryrefslogtreecommitdiff
path: root/dns/powerdns/files
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2016-08-22 10:58:06 +0000
committerBernard Spil <brnrd@FreeBSD.org>2016-08-22 10:58:06 +0000
commit572e9c71dde0f0c4ebd1d01fe66385aa71835505 (patch)
treeaf113291b04669fd2408711657adf1fdcec99157 /dns/powerdns/files
parentb77af6fefe917dc6b4f338e567454430a99a876a (diff)
downloadports-572e9c71dde0f0c4ebd1d01fe66385aa71835505.tar.gz
ports-572e9c71dde0f0c4ebd1d01fe66385aa71835505.zip
Notes
Diffstat (limited to 'dns/powerdns/files')
-rw-r--r--dns/powerdns/files/patch-libressl31
1 files changed, 31 insertions, 0 deletions
diff --git a/dns/powerdns/files/patch-libressl b/dns/powerdns/files/patch-libressl
new file mode 100644
index 000000000000..59d46acf9527
--- /dev/null
+++ b/dns/powerdns/files/patch-libressl
@@ -0,0 +1,31 @@
+--- pdns/dns_random.cc.orig 2016-07-29 14:32:32 UTC
++++ pdns/dns_random.cc
+@@ -2,7 +2,7 @@
+ #include "config.h"
+ #endif
+ #include <openssl/aes.h>
+-#if OPENSSL_VERSION_NUMBER > 0x1000100fL
++#if OPENSSL_VERSION_NUMBER > 0x1000100fL && !defined LIBRESSL_VERSION_NUMBER
+ // Older OpenSSL does not have CRYPTO_ctr128_encrypt. Before 1.1.0 the header
+ // file did not have the necessary extern "C" wrapper. In 1.1.0, AES_ctr128_encrypt
+ // was removed.
+@@ -53,7 +53,7 @@ unsigned int dns_random(unsigned int n)
+ if(!g_initialized)
+ abort();
+ uint32_t out;
+-#if OPENSSL_VERSION_NUMBER > 0x1000100fL
++#if OPENSSL_VERSION_NUMBER > 0x1000100fL && !defined LIBRESSL_VERSION_NUMBER
+ CRYPTO_ctr128_encrypt((const unsigned char*)&g_in, (unsigned char*) &out, sizeof(g_in), &aes_key, g_counter, g_stream, &g_offset, (block128_f) AES_encrypt);
+ #else
+ AES_ctr128_encrypt((const unsigned char*)&g_in, (unsigned char*) &out, sizeof(g_in), &aes_key, g_counter, g_stream, &g_offset);
+--- pdns/opensslsigners.cc.orig 2016-07-29 14:32:32 UTC
++++ pdns/opensslsigners.cc
+@@ -12,7 +12,7 @@
+ #include "opensslsigners.hh"
+ #include "dnssecinfra.hh"
+
+-#if OPENSSL_VERSION_NUMBER < 0x1010000fL
++#if (OPENSSL_VERSION_NUMBER < 0x1010000fL || defined LIBRESSL_VERSION_NUMBER)
+ /* OpenSSL < 1.1.0 needs support for threading/locking in the calling application. */
+ static pthread_mutex_t *openssllocks;
+