mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-18 12:02:28 +01:00
25 lines
502 B
Diff
25 lines
502 B
Diff
--- 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>
|