From 6378b8b93fa040811ed0f5b228897db6d5e34a7f Mon Sep 17 00:00:00 2001 From: Oleg Moskalenko Date: Sun, 20 Sep 2015 00:42:28 -0700 Subject: [PATCH] ALPN warnings fixed --- src/apps/common/apputils.h | 4 ---- src/apps/relay/mainrelay.c | 10 ++++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/apps/common/apputils.h b/src/apps/common/apputils.h index a0f0ac5..11a6e5d 100644 --- a/src/apps/common/apputils.h +++ b/src/apps/common/apputils.h @@ -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 diff --git a/src/apps/relay/mainrelay.c b/src/apps/relay/mainrelay.c index 75c587b..67cc9dc 100644 --- a/src/apps/relay/mainrelay.c +++ b/src/apps/relay/mainrelay.c @@ -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)