summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2016-12-10 20:39:32 +0000
committerBernard Spil <brnrd@FreeBSD.org>2016-12-10 20:39:32 +0000
commit17257140195f2cd3de75d11256be3fa7bad7395d (patch)
treebd8cbc84a7b9b3eb85f9ffd0c2037b3f9efff213
parentcomms/java-simple-serial-connector: Do not rewrite system variable ARCH: (diff)
devel/commoncpp: Fix build without SSLv3
- Add patch to fix build without SSLv3 - Register SSL dependency USES= ssl Approved by: SSL blanket
Notes
Notes: svn path=/head/; revision=428323
-rw-r--r--devel/commoncpp/Makefile2
-rw-r--r--devel/commoncpp/files/patch-src_ssl.cpp11
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/commoncpp/Makefile b/devel/commoncpp/Makefile
index 90733f9e2637..63c0a674f8da 100644
--- a/devel/commoncpp/Makefile
+++ b/devel/commoncpp/Makefile
@@ -13,7 +13,7 @@ MAINTAINER= acm@FreeBSD.org
COMMENT= GNU project portable class framework for C++
USE_LDCONFIG= yes
-USES= gmake libtool pathfix
+USES= gmake libtool pathfix ssl
GNU_CONFIGURE= yes
CONFIGURE_ENV= ac_cv_path_DOXYGEN=no
INSTALL_TARGET= install-strip
diff --git a/devel/commoncpp/files/patch-src_ssl.cpp b/devel/commoncpp/files/patch-src_ssl.cpp
new file mode 100644
index 000000000000..8e93a6e0a61c
--- /dev/null
+++ b/devel/commoncpp/files/patch-src_ssl.cpp
@@ -0,0 +1,11 @@
+--- src/ssl.cpp.orig 2010-11-01 00:42:51 UTC
++++ src/ssl.cpp
+@@ -386,7 +386,7 @@ bool SSLStream::getSession(void)
+ if(so == INVALID_SOCKET)
+ return false;
+
+- ctx = SSL_CTX_new(SSLv3_client_method());
++ ctx = SSL_CTX_new(SSL23_client_method());
+ if(!ctx) {
+ SSL_CTX_free(ctx);
+ return false;