Commit 0d560c6c authored by Tristan Matthews's avatar Tristan Matthews

* #5515: comment out SSLv2 calls in pjsip

OpenSSL 1.0.0 has dropped SSLv2 support, so these functions are not
defined, which causes linking errors.
parent 22c277bc
......@@ -312,8 +312,8 @@ static pj_status_t init_openssl(void)
meth = (SSL_METHOD*)TLSv1_server_method();
if (!meth)
meth = (SSL_METHOD*)SSLv3_server_method();
if (!meth)
meth = (SSL_METHOD*)SSLv2_server_method();
/*if (!meth)
meth = (SSL_METHOD*)SSLv2_server_method();*/
pj_assert(meth);
ctx=SSL_CTX_new(meth);
......@@ -389,8 +389,10 @@ static pj_status_t create_ssl_ctx(pj_ssl_sock_t *ssock, SSL_CTX **p_ctx)
ssl_method = (SSL_METHOD*)TLSv1_method();
break;
case PJ_SSL_SOCK_PROTO_SSL2:
/*
ssl_method = (SSL_METHOD*)SSLv2_method();
break;
*/
return PJ_EINVAL;
case PJ_SSL_SOCK_PROTO_SSL3:
ssl_method = (SSL_METHOD*)SSLv3_method();
break;
......
......@@ -365,8 +365,10 @@ static pj_status_t create_ctx( struct tls_listener *lis, SSL_CTX **p_ctx)
ssl_method = TLSv1_method();
break;
case PJSIP_SSLV2_METHOD:
ssl_method = SSLv2_method();
break;
/* ssl_method = SSLv2_method(); */
ssl_report_error(lis_name, 4, PJSIP_TLS_EINVMETHOD,
"Error creating SSL context: SSLv2 not supported");
return PJSIP_TLS_EINVMETHOD;
case PJSIP_SSLV3_METHOD:
ssl_method = SSLv3_method();
break;
......
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