ALPN warnings fixed

This commit is contained in:
Oleg Moskalenko 2015-09-20 00:42:28 -07:00
parent 6b3245c617
commit 6378b8b93f
2 changed files with 10 additions and 4 deletions

View File

@ -58,10 +58,6 @@ extern int IS_TURN_SERVER;
#define OPENSSL_FIRST_ALPN_VERSION (0x10002003L)
#define STUN_ALPN "stun.nat-discovery"
#define TURN_ALPN "stun.turn"
#define HTTP_ALPN "http/1.1"
#if OPENSSL_VERSION_NUMBER >= OPENSSL_FIRST_ALPN_VERSION
#define ALPN_SUPPORTED 1
#else

View File

@ -35,6 +35,16 @@
static int use_lt_credentials = 0;
static int anon_credentials = 0;
////// ALPN //////////
#if ALPN_SUPPORTED
char STUN_ALPN[128] = "stun.nat-discovery";
char TURN_ALPN[128] = "stun.turn";
char HTTP_ALPN[128] = "http/1.1";
#endif
////// TURNDB //////////////
#if defined(TURNDB)