aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bobcat/libressl-compatibility.patch
blob: 970bcf62d023db4567073e9866d22c496fa036dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/diffiehellman/diffiehellman.ih
+++ b/diffiehellman/diffiehellman.ih
@@ -15,7 +15,7 @@
 using namespace std;
 using namespace FBB;
 
-#if  OPENSSL_VERSION_NUMBER < 0x10100000L
+#if  OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 
 inline BN_GENCB *BN_GENCB_new()
 {
--- a/digestbuf/digestbuf.ih
+++ b/digestbuf/digestbuf.ih
@@ -9,7 +9,7 @@
 
 #include "../ohexstreambuf/ohexstreambuf"
 
-#if  OPENSSL_VERSION_NUMBER < 0x10100000L
+#if  OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
     inline EVP_MD_CTX *EVP_MD_CTX_new()
     {
         EVP_MD_CTX *ret = new EVP_MD_CTX;
--- a/hmacbuf/hmacbuf.ih
+++ b/hmacbuf/hmacbuf.ih
@@ -7,7 +7,7 @@
 #include <bobcat/exception>
 #include "../ohexstreambuf/ohexstreambuf"
 
-#if  OPENSSL_VERSION_NUMBER < 0x10100000L
+#if  OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 
 inline HMAC_CTX *HMAC_CTX_new()
 {