Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Feb 2017 15:42:18 +0000 (UTC)
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433654 - head/net/pjsip/files
Message-ID:  <201702081542.v18FgIw5031222@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Wed Feb  8 15:42:17 2017
New Revision: 433654
URL: https://svnweb.freebsd.org/changeset/ports/433654

Log:
  Fix net/pjsip build with libressl.
  
  PR:		216898
  Submitted by:	OlivierW <olivierw1+bugzilla-freebsd@hotmail.com>

Added:
  head/net/pjsip/files/patch-pjlib_src_pj_ssl__sock__ossl.c   (contents, props changed)

Added: head/net/pjsip/files/patch-pjlib_src_pj_ssl__sock__ossl.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pjsip/files/patch-pjlib_src_pj_ssl__sock__ossl.c	Wed Feb  8 15:42:17 2017	(r433654)
@@ -0,0 +1,47 @@
+--- pjlib/src/pj/ssl_sock_ossl.c.orig	2017-01-24 05:41:05 UTC
++++ pjlib/src/pj/ssl_sock_ossl.c
+@@ -54,7 +54,7 @@
+ #include <openssl/engine.h>
+ #include <openssl/opensslconf.h>
+ 
+-#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL
++#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
+ 
+ #   include <openssl/obj_mac.h>
+ 
+@@ -112,7 +112,7 @@ static unsigned get_nid_from_cid(unsigne
+ #endif
+ 
+ 
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+ #  define OPENSSL_NO_SSL2	    /* seems to be removed in 1.1.0 */
+ #  define M_ASN1_STRING_data(x)	    ASN1_STRING_get0_data(x)
+ #  define M_ASN1_STRING_length(x)   ASN1_STRING_length(x)
+@@ -452,7 +452,7 @@ static pj_status_t init_openssl(void)
+ 
+ 	SSL_set_session(ssl, SSL_SESSION_new());
+ 
+-#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL
++#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
+ 	openssl_curves_num = SSL_get_shared_curve(ssl,-1);
+ 	if (openssl_curves_num > PJ_ARRAY_SIZE(openssl_curves))
+ 	    openssl_curves_num = PJ_ARRAY_SIZE(openssl_curves);
+@@ -1069,7 +1069,7 @@ static pj_status_t set_cipher_list(pj_ss
+ 
+ static pj_status_t set_curves_list(pj_ssl_sock_t *ssock)
+ {
+-#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL
++#if !defined(OPENSSL_NO_EC) && OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
+     int ret;
+     int curves[PJ_SSL_SOCK_MAX_CURVES];
+     unsigned cnt;
+@@ -1100,7 +1100,7 @@ static pj_status_t set_curves_list(pj_ss
+ 
+ static pj_status_t set_sigalgs(pj_ssl_sock_t *ssock)
+ {
+-#if OPENSSL_VERSION_NUMBER >= 0x1000200fL
++#if OPENSSL_VERSION_NUMBER >= 0x1000200fL && !defined(LIBRESSL_VERSION_NUMBER)
+     int ret;
+ 
+     if (ssock->param.sigalgs.ptr && ssock->param.sigalgs.slen) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702081542.v18FgIw5031222>