]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Add ifdefs around TLS v1.1 and v1.2 handling
authorTravis Cross <tc@traviscross.com>
Mon, 10 Feb 2014 04:09:52 +0000 (04:09 +0000)
committerTravis Cross <tc@traviscross.com>
Mon, 10 Feb 2014 04:09:52 +0000 (04:09 +0000)
This is needed to support squeeze for awhile longer.

libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c

index 6da5f0a6bba41917121673c12b877a27a480ff76..716b5e680c6fc93ab145542ffdc3aad3e03e0aa9 100644 (file)
@@ -329,10 +329,14 @@ int tls_init_context(tls_t *tls, tls_issues_t const *ti)
     SSL_CTX_set_options(tls->ctx, SSL_OP_NO_SSLv3);
   if (!(ti->version & TPTLS_VERSION_TLSv1))
     SSL_CTX_set_options(tls->ctx, SSL_OP_NO_TLSv1);
+#ifdef SSL_OP_NO_TLSv1_1
   if (!(ti->version & TPTLS_VERSION_TLSv1_1))
     SSL_CTX_set_options(tls->ctx, SSL_OP_NO_TLSv1_1);
+#endif
+#ifdef SSL_OP_NO_TLSv1_2
   if (!(ti->version & TPTLS_VERSION_TLSv1_2))
     SSL_CTX_set_options(tls->ctx, SSL_OP_NO_TLSv1_2);
+#endif
   SSL_CTX_sess_set_remove_cb(tls->ctx, NULL);
   SSL_CTX_set_timeout(tls->ctx, ti->timeout);