libreSSL compatibility
This commit is contained in:
parent
43b62d16f2
commit
79aed7d8b7
@ -1,6 +1,7 @@
|
||||
08/27/2016 Oleg Moskalenko <mom040267@gmail.com>
|
||||
Version 4.5.0.5 'dan Eider':
|
||||
- Typos in the text fixed.
|
||||
- LibreSSL compatibility fixed.
|
||||
|
||||
08/20/2016 Oleg Moskalenko <mom040267@gmail.com>
|
||||
Version 4.5.0.4 'dan Eider':
|
||||
|
||||
@ -39,6 +39,11 @@
|
||||
#include "ns_turn_msg_defs.h"
|
||||
#include "ns_turn_ioalib.h"
|
||||
|
||||
#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L)
|
||||
#undef OPENSSL_VERSION_NUMBER
|
||||
#define OPENSSL_VERSION_NUMBER 0x1000107FL
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@ -39,6 +39,11 @@
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/rand.h>
|
||||
|
||||
#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L)
|
||||
#undef OPENSSL_VERSION_NUMBER
|
||||
#define OPENSSL_VERSION_NUMBER 0x1000107FL
|
||||
#endif
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
/* #define REQUEST_CLIENT_CERT */
|
||||
|
||||
@ -30,6 +30,11 @@
|
||||
|
||||
#include "mainrelay.h"
|
||||
|
||||
#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L)
|
||||
#undef OPENSSL_VERSION_NUMBER
|
||||
#define OPENSSL_VERSION_NUMBER 0x1000107FL
|
||||
#endif
|
||||
|
||||
////// TEMPORARY data //////////
|
||||
|
||||
static int use_lt_credentials = 0;
|
||||
@ -1662,7 +1667,7 @@ static void print_features(unsigned long mfn)
|
||||
#endif
|
||||
}
|
||||
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "OpenSSL compile-time version: %s\n",OPENSSL_VERSION_TEXT);
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "OpenSSL compile-time version: %s (0x%lx)\n",OPENSSL_VERSION_TEXT,OPENSSL_VERSION_NUMBER);
|
||||
|
||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "\n");
|
||||
|
||||
|
||||
@ -54,6 +54,11 @@
|
||||
#include TURN_SCTP_INCLUDE
|
||||
#endif
|
||||
|
||||
#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L)
|
||||
#undef OPENSSL_VERSION_NUMBER
|
||||
#define OPENSSL_VERSION_NUMBER 0x1000107FL
|
||||
#endif
|
||||
|
||||
/* Compilation test:
|
||||
#if defined(IP_RECVTTL)
|
||||
#undef IP_RECVTTL
|
||||
|
||||
@ -48,6 +48,11 @@
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/rand.h>
|
||||
|
||||
#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L)
|
||||
#undef OPENSSL_VERSION_NUMBER
|
||||
#define OPENSSL_VERSION_NUMBER 0x1000107FL
|
||||
#endif
|
||||
|
||||
/////////////// extern definitions /////////////////////
|
||||
|
||||
int clmessage_length=100;
|
||||
|
||||
@ -39,6 +39,11 @@
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/rand.h>
|
||||
|
||||
#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L)
|
||||
#undef OPENSSL_VERSION_NUMBER
|
||||
#define OPENSSL_VERSION_NUMBER 0x1000107FL
|
||||
#endif
|
||||
|
||||
///////////
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -39,6 +39,11 @@
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#if (defined LIBRESSL_VERSION_NUMBER && OPENSSL_VERSION_NUMBER == 0x20000000L)
|
||||
#undef OPENSSL_VERSION_NUMBER
|
||||
#define OPENSSL_VERSION_NUMBER 0x1000107FL
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user