From 17257140195f2cd3de75d11256be3fa7bad7395d Mon Sep 17 00:00:00 2001 From: Bernard Spil Date: Sat, 10 Dec 2016 20:39:32 +0000 Subject: [PATCH] devel/commoncpp: Fix build without SSLv3 - Add patch to fix build without SSLv3 - Register SSL dependency USES= ssl Approved by: SSL blanket --- devel/commoncpp/Makefile | 2 +- devel/commoncpp/files/patch-src_ssl.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 devel/commoncpp/files/patch-src_ssl.cpp 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;