Line 0
Link Here
|
|
|
1 |
--- libretroshare/src/tcponudp/bss_tou.c.orig 2019-09-04 17:37:42 UTC |
2 |
+++ libretroshare/src/tcponudp/bss_tou.c |
3 |
@@ -90,13 +90,18 @@ static int clear_tou_socket_error(int s) |
4 |
|
5 |
#include "tou.h" |
6 |
|
7 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
8 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L |
9 |
//static void BIO_set_shutdown(BIO *a,int s) { a->shutdown=s; } |
10 |
|
11 |
static int BIO_get_shutdown(BIO *a) { return a->shutdown; } |
12 |
static int BIO_get_init(BIO *a) { return a->init; } |
13 |
static void BIO_set_init(BIO *a,int i) { a->init=i; } |
14 |
static void BIO_set_data(BIO *a,void *p) { a->ptr = p; } |
15 |
+#elif defined(LIBRESSL_VERSION_NUMBER) |
16 |
+int BIO_get_shutdown(BIO *a) { return a->shutdown; } |
17 |
+int BIO_get_init(BIO *a) { return a->init; } |
18 |
+void BIO_set_init(BIO *a,int i) { a->init=i; } |
19 |
+void BIO_set_data(BIO *a,void *p) { a->ptr = p; } |
20 |
#else |
21 |
typedef struct bio_method_st { |
22 |
int type; |