Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2016 20:47:26 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421876 - in head/polish/libgadu: . files
Message-ID:  <201609112047.u8BKlQPk065841@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sun Sep 11 20:47:26 2016
New Revision: 421876
URL: https://svnweb.freebsd.org/changeset/ports/421876

Log:
  polish/libgadu: Handle missing SSLv3 method for LibreSSL
  
  Approved by:	SSL blanket

Added:
  head/polish/libgadu/files/
  head/polish/libgadu/files/patch-src_events.c   (contents, props changed)
Modified:
  head/polish/libgadu/Makefile

Modified: head/polish/libgadu/Makefile
==============================================================================
--- head/polish/libgadu/Makefile	Sun Sep 11 20:40:28 2016	(r421875)
+++ head/polish/libgadu/Makefile	Sun Sep 11 20:47:26 2016	(r421876)
@@ -37,7 +37,7 @@ OPTIONS_DEFINE=	OPENSSL
 OPTIONS_DEFAULT=OPENSSL
 
 OPENSSL_CONFIGURE_WITH=	openssl
-OPENSSL_USE=		OPENSSL=yes
+OPENSSL_USES=		ssl
 
 pre-install-OPENSSL-on:
 # OpenSSL from base system lacks .pc file for pkgconfig

Added: head/polish/libgadu/files/patch-src_events.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/polish/libgadu/files/patch-src_events.c	Sun Sep 11 20:47:26 2016	(r421876)
@@ -0,0 +1,14 @@
+--- src/events.c.orig	2014-12-20 12:09:17 UTC
++++ src/events.c
+@@ -294,7 +294,11 @@ int gg_session_init_ssl(struct gg_sessio
+ 	}
+ 
+ 	if (gs->ssl_ctx == NULL) {
++#ifndef OPENSSL_NO_SSL3
+ 		gs->ssl_ctx = SSL_CTX_new(SSLv3_client_method());
++#else
++		gs->ssl_ctx = SSL_CTX_new(SSLv23_client_method());
++#endif
+ 
+ 		if (gs->ssl_ctx == NULL) {
+ 			ERR_error_string_n(ERR_get_error(), buf, sizeof(buf));



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