Commit 0bd85c9c authored by Simon Morlat's avatar Simon Morlat

add support for more recent versions of TLS

parent e55fc1b3
......@@ -11,7 +11,7 @@ dnl information on the package
dnl ---------------------------
dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
AC_INIT([sofia-sip], [1.13.3bc])
AC_INIT([sofia-sip], [1.13.4bc])
AC_CONFIG_SRCDIR([libsofia-sip-ua/sip/sofia-sip/sip.h])
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST(VER_LIBSOFIA_SIP_UA_MAJOR_MINOR, [1.13])
......
......@@ -297,9 +297,17 @@ int tls_init_context(tls_t *tls, tls_issues_t const *ti)
/* meth = SSLv3_method(); */
/* meth = SSLv23_method(); */
if (ti->version)
if (ti->version){
/*meth = TLS_method(); this works only for openssl 1.1*/
/*meanwhile we can use this:*/
#ifdef SSL_TXT_TLSV1_2
meth = TLSv1_2_method();
#elif defined(SSL_TXT_TLSV1_1)
meth = TLSv1_1_method();
#else
meth = TLSv1_method();
else
#endif
}else
meth = SSLv23_method();
tls->ctx = SSL_CTX_new((SSL_METHOD*)meth);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment