diff options
-rwxr-xr-x | aconfigure | 6 | ||||
-rw-r--r-- | aconfigure.ac | 3 | ||||
-rw-r--r-- | pjsip/include/pjsip/sip_autoconf.h.in | 10 | ||||
-rw-r--r-- | pjsip/include/pjsip/sip_config.h | 4 |
4 files changed, 11 insertions, 12 deletions
@@ -11496,10 +11496,8 @@ fi if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then { echo "$as_me:$LINENO: result: OpenSSL library found, SSL support enabled" >&5 echo "${ECHO_T}OpenSSL library found, SSL support enabled" >&6; } - cat >>confdefs.h <<\_ACEOF -#define PJSIP_HAS_TLS_TRANSPORT 1 -_ACEOF - + # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK + #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) cat >>confdefs.h <<\_ACEOF #define PJ_HAS_SSL_SOCK 1 _ACEOF diff --git a/aconfigure.ac b/aconfigure.ac index 7c914907..7f579e7f 100644 --- a/aconfigure.ac +++ b/aconfigure.ac @@ -758,7 +758,8 @@ AC_ARG_ENABLE(ssl, AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"]) if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) - AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) + # PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK + #AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) AC_DEFINE(PJ_HAS_SSL_SOCK, 1) else AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **]) diff --git a/pjsip/include/pjsip/sip_autoconf.h.in b/pjsip/include/pjsip/sip_autoconf.h.in index 5372b2c3..38eda08d 100644 --- a/pjsip/include/pjsip/sip_autoconf.h.in +++ b/pjsip/include/pjsip/sip_autoconf.h.in @@ -26,14 +26,14 @@ * autoconf) */ -/** +/* * Enable/disable TLS transport, as configured by autoconf. * But only do this if user doesn't explicitly configure in pj/config_site.h. */ -#ifndef PJSIP_HAS_TLS_TRANSPORT -#undef PJSIP_HAS_TLS_TRANSPORT -#endif - +/* Since 1.5, the default setting will follow PJ_HAS_SSL_SOCK setting. */ +//#ifndef PJSIP_HAS_TLS_TRANSPORT +//#undef PJSIP_HAS_TLS_TRANSPORT +//#endif #endif /* __PJSIP_SIP_AUTOCONF_H__ */ diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index 5bbe420f..8dc4a82e 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -513,10 +513,10 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void) * Enable TLS SIP transport support. For most systems this means that * OpenSSL must be installed. * - * Default: 0 (for now) + * Default: follow PJ_HAS_SSL_SOCK setting, which is 0 (disabled) by default. */ #ifndef PJSIP_HAS_TLS_TRANSPORT -# define PJSIP_HAS_TLS_TRANSPORT 0 +# define PJSIP_HAS_TLS_TRANSPORT PJ_HAS_SSL_SOCK #endif |