diff --git a/libretroshare/src/tcponudp/bss_tou.c b/libretroshare/src/tcponudp/bss_tou.c index 63b5e0c1a..7e9274c51 100644 --- a/libretroshare/src/tcponudp/bss_tou.c +++ b/libretroshare/src/tcponudp/bss_tou.c @@ -91,13 +91,19 @@ static int clear_tou_socket_error(int s); #include "tou.h" #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) -//static void BIO_set_shutdown(BIO *a,int s) { a->shutdown=s; } + +static int BIO_get_init(BIO *a) { return a->init; } + +#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000) || (!defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10100000L) static int BIO_get_shutdown(BIO *a) { return a->shutdown; } -static int BIO_get_init(BIO *a) { return a->init; } static void BIO_set_init(BIO *a,int i) { a->init=i; } static void BIO_set_data(BIO *a,void *p) { a->ptr = p; } + +#endif + #else + typedef struct bio_method_st { int type; const char *name;