summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobak <robak@FreeBSD.org>2015-04-03 18:28:55 +0000
committerrobak <robak@FreeBSD.org>2015-04-03 18:28:55 +0000
commit2d6fb50eb01da5d4830b63310582c2a59edbc463 (patch)
treecf3d37a2e7f84301dfabd1c3a1bbdc972e2d9a8c
parente98548b16dd6b7c7f759e6b308f3f0db740b1d5c (diff)
downloadFreeBSD-ports-2d6fb50eb01da5d4830b63310582c2a59edbc463.zip
FreeBSD-ports-2d6fb50eb01da5d4830b63310582c2a59edbc463.tar.gz
security/sslwrap: fix build with OpenSSL libs without SSLv2
PR: 198400 Submitted by: Bernard Spil <spil.oss@gmail.com>
-rw-r--r--security/sslwrap/Makefile2
-rw-r--r--security/sslwrap/files/patch-s_server.c15
2 files changed, 16 insertions, 1 deletions
diff --git a/security/sslwrap/Makefile b/security/sslwrap/Makefile
index d74ce1c..5e5c758 100644
--- a/security/sslwrap/Makefile
+++ b/security/sslwrap/Makefile
@@ -3,7 +3,7 @@
PORTNAME= sslwrap
PORTVERSION= 2.0.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://www.rickk.com/sslwrap/
DISTNAME= ${PORTNAME}
diff --git a/security/sslwrap/files/patch-s_server.c b/security/sslwrap/files/patch-s_server.c
new file mode 100644
index 0000000..64c86f1
--- /dev/null
+++ b/security/sslwrap/files/patch-s_server.c
@@ -0,0 +1,15 @@
+--- s_server.c.orig 2000-11-11 22:11:18 UTC
++++ s_server.c
+@@ -137,6 +137,12 @@ static RSA MS_CALLBACK *tmp_rsa_cb(SSL *
+ , int keylen
+ #endif
+ );
++#if defined(OPENSSL_NO_SSL2)
++#define NO_SSL2
++#endif
++#if defined(OPENSSL_NO_SSL3)
++#define NO_SSL3
++#endif
+ static int sv_body(char *hostname, int sin, int sout);
+ static void close_accept_socket(void );
+ static void sv_usage(void);
OpenPOWER on IntegriCloud