mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed compilation with libressl2.7 (patch from sss, modified)
This commit is contained in:
parent
703d709624
commit
4a309b827a
@ -91,13 +91,19 @@ static int clear_tou_socket_error(int s);
|
|||||||
#include "tou.h"
|
#include "tou.h"
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
#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_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_init(BIO *a,int i) { a->init=i; }
|
||||||
static void BIO_set_data(BIO *a,void *p) { a->ptr = p; }
|
static void BIO_set_data(BIO *a,void *p) { a->ptr = p; }
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
typedef struct bio_method_st {
|
typedef struct bio_method_st {
|
||||||
int type;
|
int type;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
Loading…
Reference in New Issue
Block a user