diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-02-20 15:11:50 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-02-20 15:11:50 +0000 |
commit | 16449a80e28af2209916cc66d19c9a44ca2b90d9 (patch) | |
tree | b4cfe2332c7a6c5da27b6985bf05db4508df1a92 /net-dns/opendnssec/files | |
parent | 79599515788b85b18aa655e7b7f8cc05c1bbddd8 (diff) |
gentoo resync : 20.02.2019
Diffstat (limited to 'net-dns/opendnssec/files')
-rw-r--r-- | net-dns/opendnssec/files/opendnssec-openssl1.1.patch | 55 | ||||
-rw-r--r-- | net-dns/opendnssec/files/opendnssec-use-system-trang.patch | 4 |
2 files changed, 57 insertions, 2 deletions
diff --git a/net-dns/opendnssec/files/opendnssec-openssl1.1.patch b/net-dns/opendnssec/files/opendnssec-openssl1.1.patch new file mode 100644 index 000000000000..b81068c4b9fd --- /dev/null +++ b/net-dns/opendnssec/files/opendnssec-openssl1.1.patch @@ -0,0 +1,55 @@ +--- a/signer/src/wire/tsig-openssl.c ++++ b/signer/src/wire/tsig-openssl.c +@@ -126,7 +126,11 @@ static void + cleanup_context(void *data) + { + HMAC_CTX* context = (HMAC_CTX*) data; ++#ifdef HAVE_SSL_NEW_HMAC ++ HMAC_CTX_free(context); ++#else + HMAC_CTX_cleanup(context); ++#endif + } + + static void +@@ -146,8 +150,13 @@ static void* + create_context() + { + HMAC_CTX* context; ++#ifdef HAVE_SSL_NEW_HMAC ++ CHECKALLOC(context = HMAC_CTX_new()); ++ HMAC_CTX_reset(context); ++#else + CHECKALLOC(context = (HMAC_CTX*) malloc(sizeof(HMAC_CTX))); + HMAC_CTX_init(context); ++#endif + context_add_cleanup(context); + return context; + } +--- a/m4/acx_ssl.m4 2016-10-14 09:40:13.000000000 -0400 ++++ b/m4/acx_ssl.m4 2019-02-18 13:52:49.861127549 -0500 +@@ -35,12 +35,21 @@ + if test x_$ssldir = x_/usr/sfw; then + SSL_LIBS="$SSL_LIBS -R$ssldir/lib"; + fi +- AC_CHECK_LIB(crypto, HMAC_CTX_init,, [ +- AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required]) +- ]) ++ save_LIBS=$LIBS ++ AC_CHECK_LIB(crypto, HMAC_CTX_reset, [ ++ AC_DEFINE_UNQUOTED([HAVE_SSL_NEW_HMAC], [], [Define if you have the SSL libraries with new HMAC related functions.]) ++ ], [ ++ AC_CHECK_LIB(crypto, HMAC_CTX_init,, [ ++ AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required]) ++ ]) ++ ] ) ++ SSL_LIBS="$SSL_LIBS -lcrypto"; ++ LIBS="$SSL_LIBS $LIBS" + AC_CHECK_FUNCS([EVP_sha1 EVP_sha256]) ++ LIBS=$saveLIBS + fi + AC_SUBST(HAVE_SSL) ++ AC_SUBST(HAVE_SSL_NEW_HMAC) + AC_SUBST(SSL_INCLUDES) + AC_SUBST(SSL_LIBS) + fi diff --git a/net-dns/opendnssec/files/opendnssec-use-system-trang.patch b/net-dns/opendnssec/files/opendnssec-use-system-trang.patch index 745b277e1339..4cc564c265a3 100644 --- a/net-dns/opendnssec/files/opendnssec-use-system-trang.patch +++ b/net-dns/opendnssec/files/opendnssec-use-system-trang.patch @@ -1,5 +1,5 @@ ---- conf/Makefile.am.orig 2013-05-12 22:45:26.514768943 +0200 -+++ conf/Makefile.am 2013-05-12 22:46:33.399545628 +0200 +--- a/conf/Makefile.am.orig 2013-05-12 22:45:26.514768943 +0200 ++++ b/conf/Makefile.am 2013-05-12 22:46:33.399545628 +0200 @@ -7,7 +7,7 @@ XML = addns.xml conf.xml kasp.xml zonelist.xml signconf.xml enforcerstate.xml XSL= kasp2html.xsl |