mirror of
https://github.com/coturn/coturn.git
synced 2026-05-05 18:56:09 +02:00
First step to re-enable compilation with OpenSSL 1.0.x
This commit is contained in:
parent
4ffc49d7be
commit
02461e9fbc
@ -30,6 +30,17 @@
|
||||
|
||||
#include "mainrelay.h"
|
||||
|
||||
//////////// Backward compatibility with OpenSSL 1.0.x //////////////
|
||||
#define HAVE_OPENSSL11_API (!(OPENSSL_VERSION_NUMBER < 0x10100001L || defined LIBRESSL_VERSION_NUMBER))
|
||||
|
||||
#ifndef HAVE_SSL_CTX_UP_REF
|
||||
#define HAVE_SSL_CTX_UP_REF HAVE_OPENSSL11_API
|
||||
#endif
|
||||
|
||||
#if !HAVE_SSL_CTX_UP_REF
|
||||
#define SSL_CTX_up_ref(ctx) CRYPTO_add(&(ctx)->references, 1, CRYPTO_LOCK_SSL_CTX)
|
||||
#endif
|
||||
|
||||
//////////// Barrier for the threads //////////////
|
||||
|
||||
#if !defined(TURN_NO_THREAD_BARRIERS)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user