aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-m2crypto/libressl.patch
blob: b564c2bbc76f244dfcc1c417e1f297bf71d0de5b (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
--- a/SWIG/_bio.i
+++ b/SWIG/_bio.i
@@ -9,6 +9,10 @@
 
 %{
 #include <openssl/bio.h>
+
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+#define BIO_get_init(b) (b)->init
+#endif
 %}
 
 %apply Pointer NONNULL { BIO * };
--- a/SWIG/_lib11_compat.i
+++ b/SWIG/_lib11_compat.i
@@ -8,7 +8,7 @@
  */
 
 %{
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 
 #include <string.h>
 #include <openssl/engine.h>