From 57169ef9fb381571ab8ea50ef6884bc818c28855 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Wed, 11 Nov 2009 05:33:59 +0000 Subject: [PATCH] fix sofia build with new openssl git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15426 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c b/libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c index baa4e6a3a9..711ff200ec 100644 --- a/libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c +++ b/libs/sofia-sip/libsofia-sip-ua/tport/tport_tls.c @@ -271,7 +271,7 @@ int tls_init_context(tls_t *tls, tls_issues_t const *ti) #endif if (tls->ctx == NULL) { - SSL_METHOD *meth; + const SSL_METHOD *meth; /* meth = SSLv3_method(); */ /* meth = SSLv23_method(); */ @@ -281,7 +281,7 @@ int tls_init_context(tls_t *tls, tls_issues_t const *ti) else meth = SSLv23_method(); - tls->ctx = SSL_CTX_new(meth); + tls->ctx = SSL_CTX_new((SSL_METHOD*)meth); } if (tls->ctx == NULL) {