diff options
author | Bernard Spil <brnrd@FreeBSD.org> | 2017-02-27 10:41:46 +0000 |
---|---|---|
committer | Bernard Spil <brnrd@FreeBSD.org> | 2017-02-27 10:41:46 +0000 |
commit | a5c65f771ea7eb96945f4bad653e9b0d9fa19f9c (patch) | |
tree | d7d96133501af77973544bb902f71e586c55842e /dns | |
parent | 73f350d9766c1c1b8aae058c3e75f8ddf5050760 (diff) | |
download | ports-a5c65f771ea7eb96945f4bad653e9b0d9fa19f9c.tar.gz ports-a5c65f771ea7eb96945f4bad653e9b0d9fa19f9c.zip |
Notes
Diffstat (limited to 'dns')
-rw-r--r-- | dns/yadifa/files/patch-lib_dnscore_src_dnskey__dsa.c | 20 | ||||
-rw-r--r-- | dns/yadifa/files/patch-lib_dnscore_src_dnskey__ecdsa.c | 11 | ||||
-rw-r--r-- | dns/yadifa/files/patch-lib_dnscore_src_dnskey__rsa.c | 11 | ||||
-rw-r--r-- | dns/yadifa/files/patch-lib_dnscore_src_tsig.c | 29 |
4 files changed, 71 insertions, 0 deletions
diff --git a/dns/yadifa/files/patch-lib_dnscore_src_dnskey__dsa.c b/dns/yadifa/files/patch-lib_dnscore_src_dnskey__dsa.c new file mode 100644 index 000000000000..a8561d5cb36c --- /dev/null +++ b/dns/yadifa/files/patch-lib_dnscore_src_dnskey__dsa.c @@ -0,0 +1,20 @@ +--- lib/dnscore/src/dnskey_dsa.c.orig 2016-12-16 11:52:17 UTC ++++ lib/dnscore/src/dnskey_dsa.c +@@ -70,7 +70,7 @@ + #error "OPENSSL_VERSION_NUMBER not defined" + #endif + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + + /* + * Backward-compatible interface for 0.9.x +@@ -226,7 +226,7 @@ dnskey_dsa_genkey(u32 size) + int err; + DSA* dsa; + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + dsa = DSA_generate_parameters(size, NULL,0, NULL, NULL, NULL, NULL); + #else + dsa = DSA_new(); diff --git a/dns/yadifa/files/patch-lib_dnscore_src_dnskey__ecdsa.c b/dns/yadifa/files/patch-lib_dnscore_src_dnskey__ecdsa.c new file mode 100644 index 000000000000..249f28a4b4f0 --- /dev/null +++ b/dns/yadifa/files/patch-lib_dnscore_src_dnskey__ecdsa.c @@ -0,0 +1,11 @@ +--- lib/dnscore/src/dnskey_ecdsa.c.orig 2016-12-16 11:52:17 UTC ++++ lib/dnscore/src/dnskey_ecdsa.c +@@ -79,7 +79,7 @@ + #define DNSKEY_ALGORITHM_ECDSAP256SHA256_NID NID_X9_62_prime256v1 + #define DNSKEY_ALGORITHM_ECDSAP384SHA384_NID NID_secp384r1 + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + + #define SSL_FIELD_GET(st_,f_) if(f_ != NULL) { *f_ = st_->f_; } + #define SSL_FIELD_SET(st_,f_) if(f_ != NULL) { BN_free(st_->f_); st_->f_ = f_; } diff --git a/dns/yadifa/files/patch-lib_dnscore_src_dnskey__rsa.c b/dns/yadifa/files/patch-lib_dnscore_src_dnskey__rsa.c new file mode 100644 index 000000000000..7baff4142c56 --- /dev/null +++ b/dns/yadifa/files/patch-lib_dnscore_src_dnskey__rsa.c @@ -0,0 +1,11 @@ +--- lib/dnscore/src/dnskey_rsa.c.orig 2016-12-16 11:52:17 UTC ++++ lib/dnscore/src/dnskey_rsa.c +@@ -64,7 +64,7 @@ + + #define MODULE_MSG_HANDLE g_system_logger + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + + #define SSL_FIELD_GET(st_,f_) if(f_ != NULL) { *f_ = st_->f_; } + #define SSL_FIELD_SET(st_,f_) if(f_ != NULL) { BN_free(st_->f_); st_->f_ = f_; } diff --git a/dns/yadifa/files/patch-lib_dnscore_src_tsig.c b/dns/yadifa/files/patch-lib_dnscore_src_tsig.c new file mode 100644 index 000000000000..1853f2850ef0 --- /dev/null +++ b/dns/yadifa/files/patch-lib_dnscore_src_tsig.c @@ -0,0 +1,29 @@ +--- lib/dnscore/src/tsig.c.orig 2016-12-16 11:52:17 UTC ++++ lib/dnscore/src/tsig.c +@@ -233,7 +233,7 @@ + tsig_hmac_t + tsig_hmac_allocate() + { +-#if OPENSSL_VERSION_NUMBER < 0x10100000L // ie: 0.9.x ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) // ie: 0.9.x + HMAC_CTX *hmac; + ZALLOC_OR_DIE(HMAC_CTX*, hmac, HMAC_CTX, GENERIC_TAG); + HMAC_CTX_init(hmac); +@@ -257,7 +257,7 @@ tsig_hmac_free(tsig_hmac_t t) + { + HMAC_CTX *hmac = (HMAC_CTX*)t; + yassert(hmac != NULL); +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + HMAC_CTX_cleanup(hmac); + ZFREE(t, HMAC_CTX); + #else +@@ -268,7 +268,7 @@ tsig_hmac_free(tsig_hmac_t t) + void tsig_hmac_reset(tsig_hmac_t t) + { + HMAC_CTX *hmac = (HMAC_CTX*)t; +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + HMAC_CTX_cleanup(hmac); + HMAC_CTX_init(hmac); + #else |