Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Oct 2018 19:14:37 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r482776 - in branches/2018Q4/net-im/licq: . files
Message-ID:  <201810221914.w9MJEb5c060424@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Mon Oct 22 19:14:37 2018
New Revision: 482776
URL: https://svnweb.freebsd.org/changeset/ports/482776

Log:
  MFH: r482566
  
  - fix OpenSSL 1.1.x build

Added:
  branches/2018Q4/net-im/licq/files/patch-licq.cpp
     - copied unchanged from r482566, head/net-im/licq/files/patch-licq.cpp
Modified:
  branches/2018Q4/net-im/licq/Makefile
Directory Properties:
  branches/2018Q4/   (props changed)

Modified: branches/2018Q4/net-im/licq/Makefile
==============================================================================
--- branches/2018Q4/net-im/licq/Makefile	Mon Oct 22 19:10:05 2018	(r482775)
+++ branches/2018Q4/net-im/licq/Makefile	Mon Oct 22 19:14:37 2018	(r482776)
@@ -4,7 +4,7 @@
 
 PORTNAME=	base
 PORTVERSION=	${LICQ_VER}
-PORTREVISION=	11
+PORTREVISION=	12
 CATEGORIES=	net-im
 PKGNAMESUFFIX=	${SOCKS_SUFFIX}${PKGNAMESUFFIX2}
 

Copied: branches/2018Q4/net-im/licq/files/patch-licq.cpp (from r482566, head/net-im/licq/files/patch-licq.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2018Q4/net-im/licq/files/patch-licq.cpp	Mon Oct 22 19:14:37 2018	(r482776, copy of r482566, head/net-im/licq/files/patch-licq.cpp)
@@ -0,0 +1,52 @@
+--- src/licq.cpp.orig	2014-06-01 19:16:42 UTC
++++ src/licq.cpp
+@@ -89,6 +89,19 @@ using std::string;
+ extern SSL_CTX *gSSL_CTX;
+ extern SSL_CTX *gSSL_CTX_NONICQ;
+ 
++# if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x10100001L || \
++     (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
++static int
++DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
++{
++        dh->p=p;
++        if (q != NULL)
++                dh->q=q;
++        dh->g=g;
++        return 1; /* success */
++}
++# endif /* !defined() || OPENSSL_VERSION_NUMBER < 0x00907000L */
++
+ // AUTOGENERATED by dhparam
+ static DH *get_dh512()
+         {
+@@ -104,12 +117,14 @@ static DH *get_dh512()
+                 0x02,
+                 };
+         DH *dh;
++        BIGNUM *dhp_bn, *dhg_bn;
++
+ 
+         if ((dh=DH_new()) == NULL) return(NULL);
+-        dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL);
+-        dh->g=BN_bin2bn(dh512_g,sizeof(dh512_g),NULL);
+-        if ((dh->p == NULL) || (dh->g == NULL))
+-                { DH_free(dh); return(NULL); }
++        dhp_bn = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL);
++        dhg_bn = BN_bin2bn(dh512_g, sizeof(dh512_g), NULL);
++        if ((dhp_bn == NULL) || (dhg_bn == NULL) || !DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn))
++                { DH_free(dh); BN_free(dhp_bn); BN_free(dhg_bn); return(NULL); }
+         return(dh);
+         }
+ 
+@@ -610,8 +625,8 @@ bool CLicq::Init(int argc, char **argv)
+ #ifdef USE_OPENSSL
+   // Initialize SSL
+   SSL_library_init();
+-  gSSL_CTX = SSL_CTX_new(TLSv1_method());
+-  gSSL_CTX_NONICQ = SSL_CTX_new(TLSv1_method());
++  gSSL_CTX = SSL_CTX_new(SSLv23_method());
++  gSSL_CTX_NONICQ = SSL_CTX_new(SSLv23_method());
+ #if OPENSSL_VERSION_NUMBER >= 0x00905000L
+   SSL_CTX_set_cipher_list(gSSL_CTX, "ADH:@STRENGTH");
+ #else



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