aboutsummaryrefslogtreecommitdiffstats
path: root/polish
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-09-12 04:47:26 +0800
committermarino <marino@FreeBSD.org>2016-09-12 04:47:26 +0800
commit0e73a1aa9351a2d5d93a5950be6069618e810375 (patch)
tree9ee5dcde4c363dddb28735305b67fa6145e75c2e /polish
parentd7e70ab31636d87c2a054f934270f2baeaf9424c (diff)
downloadfreebsd-ports-gnome-0e73a1aa9351a2d5d93a5950be6069618e810375.tar.gz
freebsd-ports-gnome-0e73a1aa9351a2d5d93a5950be6069618e810375.tar.zst
freebsd-ports-gnome-0e73a1aa9351a2d5d93a5950be6069618e810375.zip
polish/libgadu: Handle missing SSLv3 method for LibreSSL
Approved by: SSL blanket
Diffstat (limited to 'polish')
-rw-r--r--polish/libgadu/Makefile2
-rw-r--r--polish/libgadu/files/patch-src_events.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/polish/libgadu/Makefile b/polish/libgadu/Makefile
index af23abb0b1d5..6f871ddeae3d 100644
--- a/polish/libgadu/Makefile
+++ b/polish/libgadu/Makefile
@@ -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
diff --git a/polish/libgadu/files/patch-src_events.c b/polish/libgadu/files/patch-src_events.c
new file mode 100644
index 000000000000..c5989dbe2c1a
--- /dev/null
+++ b/polish/libgadu/files/patch-src_events.c
@@ -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));