Date: Sat, 20 Oct 2018 15:41:31 +0000 (UTC) From: Dirk Meyer <dinoex@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r482566 - in head/net-im/licq: . files Message-ID: <201810201541.w9KFfVXQ046424@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dinoex Date: Sat Oct 20 15:41:31 2018 New Revision: 482566 URL: https://svnweb.freebsd.org/changeset/ports/482566 Log: - fix OpenSSL 1.1.x build Added: head/net-im/licq/files/patch-licq.cpp (contents, props changed) Modified: head/net-im/licq/Makefile Modified: head/net-im/licq/Makefile ============================================================================== --- head/net-im/licq/Makefile Sat Oct 20 15:41:15 2018 (r482565) +++ head/net-im/licq/Makefile Sat Oct 20 15:41:31 2018 (r482566) @@ -4,7 +4,7 @@ PORTNAME= base PORTVERSION= ${LICQ_VER} -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= net-im PKGNAMESUFFIX= ${SOCKS_SUFFIX}${PKGNAMESUFFIX2} Added: head/net-im/licq/files/patch-licq.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/licq/files/patch-licq.cpp Sat Oct 20 15:41:31 2018 (r482566) @@ -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?201810201541.w9KFfVXQ046424>