Index: head/dns/powerdns/files/patch-libressl =================================================================== --- head/dns/powerdns/files/patch-libressl (nonexistent) +++ head/dns/powerdns/files/patch-libressl (revision 420599) @@ -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 +-#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; + Property changes on: head/dns/powerdns/files/patch-libressl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/dns/powerdns-recursor/files/patch-libressl =================================================================== --- head/dns/powerdns-recursor/files/patch-libressl (nonexistent) +++ head/dns/powerdns-recursor/files/patch-libressl (revision 420599) @@ -0,0 +1,31 @@ +--- dns_random.cc.orig 2016-07-29 14:32:32 UTC ++++ dns_random.cc +@@ -2,7 +2,7 @@ + #include "config.h" + #endif + #include +-#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); +--- opensslsigners.cc.orig 2016-07-29 14:32:32 UTC ++++ 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; + Property changes on: head/dns/powerdns-recursor/files/patch-libressl ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property