summaryrefslogtreecommitdiff
path: root/dev-libs/libevent/files/libressl.patch
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-03-19 16:07:58 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-03-19 16:07:58 +0300
commite2539146d56f6cb812d0c70717b6721a33d15df8 (patch)
treed6d97cd8174ad093d4019eed43808476b097c424 /dev-libs/libevent/files/libressl.patch
parentfe4a2b5da8ff992d7470b19a31a2b2dd62c570cb (diff)
libevent-scm with libressl patch
Diffstat (limited to 'dev-libs/libevent/files/libressl.patch')
-rw-r--r--dev-libs/libevent/files/libressl.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/libevent/files/libressl.patch b/dev-libs/libevent/files/libressl.patch
new file mode 100644
index 0000000..9f39e5f
--- /dev/null
+++ b/dev-libs/libevent/files/libressl.patch
@@ -0,0 +1,40 @@
+diff --git a/openssl-compat.h b/openssl-compat.h
+index bffd2593..4e774216 100644
+--- a/openssl-compat.h
++++ b/openssl-compat.h
+@@ -4,35 +4,4 @@
+ #include <openssl/bio.h>
+ #include "util-internal.h"
+
+-#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
+-
+-static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
+-{
+- BIO_METHOD *biom = calloc(1, sizeof(BIO_METHOD));
+-
+- if (biom != NULL) {
+- biom->type = type;
+- biom->name = name;
+- }
+- return biom;
+-}
+-
+-#define BIO_meth_set_write(b, f) (b)->bwrite = (f)
+-#define BIO_meth_set_read(b, f) (b)->bread = (f)
+-#define BIO_meth_set_puts(b, f) (b)->bputs = (f)
+-#define BIO_meth_set_ctrl(b, f) (b)->ctrl = (f)
+-#define BIO_meth_set_create(b, f) (b)->create = (f)
+-#define BIO_meth_set_destroy(b, f) (b)->destroy = (f)
+-
+-#define BIO_set_init(b, val) (b)->init = (val)
+-#define BIO_set_data(b, val) (b)->ptr = (val)
+-#define BIO_set_shutdown(b, val) (b)->shutdown = (val)
+-#define BIO_get_init(b) (b)->init
+-#define BIO_get_data(b) (b)->ptr
+-#define BIO_get_shutdown(b) (b)->shutdown
+-
+-#define TLS_method SSLv23_method
+-
+-#endif /* (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) */
+-
+ #endif /* OPENSSL_COMPAT_H */