View | Details | Raw Unified | Return to bug 217349
Collapse All | Expand All

(-)dns/yadifa/files/patch-lib_dnscore_src_dnskey__dsa.c (+20 lines)
Line 0 Link Here
1
--- lib/dnscore/src/dnskey_dsa.c.orig	2016-12-16 11:52:17 UTC
2
+++ lib/dnscore/src/dnskey_dsa.c
3
@@ -70,7 +70,7 @@
4
 #error "OPENSSL_VERSION_NUMBER not defined"
5
 #endif
6
 
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
9
 
10
 /*
11
  * Backward-compatible interface for 0.9.x
12
@@ -226,7 +226,7 @@ dnskey_dsa_genkey(u32 size)
13
     int err;
14
     DSA* dsa;
15
 
16
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
17
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
18
     dsa = DSA_generate_parameters(size, NULL,0, NULL, NULL, NULL, NULL);
19
 #else
20
     dsa = DSA_new();
(-)dns/yadifa/files/patch-lib_dnscore_src_dnskey__ecdsa.c (+11 lines)
Line 0 Link Here
1
--- lib/dnscore/src/dnskey_ecdsa.c.orig	2016-12-16 11:52:17 UTC
2
+++ lib/dnscore/src/dnskey_ecdsa.c
3
@@ -79,7 +79,7 @@
4
 #define DNSKEY_ALGORITHM_ECDSAP256SHA256_NID NID_X9_62_prime256v1
5
 #define DNSKEY_ALGORITHM_ECDSAP384SHA384_NID NID_secp384r1
6
 
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
9
 
10
 #define SSL_FIELD_GET(st_,f_) if(f_ != NULL) { *f_ = st_->f_; }
11
 #define SSL_FIELD_SET(st_,f_) if(f_ != NULL) { BN_free(st_->f_); st_->f_ = f_; }
(-)dns/yadifa/files/patch-lib_dnscore_src_dnskey__rsa.c (+11 lines)
Line 0 Link Here
1
--- lib/dnscore/src/dnskey_rsa.c.orig	2016-12-16 11:52:17 UTC
2
+++ lib/dnscore/src/dnskey_rsa.c
3
@@ -64,7 +64,7 @@
4
 
5
 #define MODULE_MSG_HANDLE g_system_logger
6
 
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
9
 
10
 #define SSL_FIELD_GET(st_,f_) if(f_ != NULL) { *f_ = st_->f_; }
11
 #define SSL_FIELD_SET(st_,f_) if(f_ != NULL) { BN_free(st_->f_); st_->f_ = f_; }
(-)dns/yadifa/files/patch-lib_dnscore_src_tsig.c (+29 lines)
Line 0 Link Here
1
--- lib/dnscore/src/tsig.c.orig	2016-12-16 11:52:17 UTC
2
+++ lib/dnscore/src/tsig.c
3
@@ -233,7 +233,7 @@
4
 tsig_hmac_t
5
 tsig_hmac_allocate()
6
 {
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000L // ie: 0.9.x
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) // ie: 0.9.x
9
     HMAC_CTX *hmac;
10
     ZALLOC_OR_DIE(HMAC_CTX*, hmac, HMAC_CTX, GENERIC_TAG);
11
     HMAC_CTX_init(hmac);
12
@@ -257,7 +257,7 @@ tsig_hmac_free(tsig_hmac_t t)
13
 {
14
     HMAC_CTX *hmac = (HMAC_CTX*)t;
15
     yassert(hmac != NULL);
16
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
17
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
18
     HMAC_CTX_cleanup(hmac);
19
     ZFREE(t, HMAC_CTX);
20
 #else
21
@@ -268,7 +268,7 @@ tsig_hmac_free(tsig_hmac_t t)
22
 void tsig_hmac_reset(tsig_hmac_t t)
23
 {
24
     HMAC_CTX *hmac = (HMAC_CTX*)t;
25
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
26
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
27
     HMAC_CTX_cleanup(hmac);
28
     HMAC_CTX_init(hmac);
29
 #else
(-)dns/yadifa/files/yadifad.in (-1 / +1 lines)
Lines 1-6 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# $FreeBSD$
3
# $FreeBSD: head/dns/yadifa/files/yadifad.in 340872 2014-01-24 00:14:07Z mat $
4
#
4
#
5
# PROVIDE: yadifad
5
# PROVIDE: yadifad
6
# REQUIRE: SERVERS cleanvar
6
# REQUIRE: SERVERS cleanvar

Return to bug 217349