1
0
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:
Steffen Moser 2022-08-23 08:58:45 +02:00
parent 4ffc49d7be
commit 02461e9fbc

View File

@ -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)