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])
......@@ -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();
meth = TLSv1_method();
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