aboutsummaryrefslogtreecommitdiffstats
path: root/net/tn5250
diff options
context:
space:
mode:
authorbrnrd <brnrd@FreeBSD.org>2016-12-11 03:22:10 +0800
committerbrnrd <brnrd@FreeBSD.org>2016-12-11 03:22:10 +0800
commit4da21ca8b57f8d356f02af798b7b4ad96b689032 (patch)
tree164727a282edee4ca6e25637c062a8f485c42d49 /net/tn5250
parent3966ac85b0670ba9784ce5353bac8f4640b0b42a (diff)
downloadfreebsd-ports-gnome-4da21ca8b57f8d356f02af798b7b4ad96b689032.tar.gz
freebsd-ports-gnome-4da21ca8b57f8d356f02af798b7b4ad96b689032.tar.zst
freebsd-ports-gnome-4da21ca8b57f8d356f02af798b7b4ad96b689032.zip
net/tn5250: Fix build without SSLv2/3
- Add patch fixing build without SSLv2/3 - Switch USE_OPENSSL to USES= ssl Approved by: SSL blanket
Diffstat (limited to 'net/tn5250')
-rw-r--r--net/tn5250/Makefile3
-rw-r--r--net/tn5250/files/patch-lib5250_sslstream.c24
2 files changed, 25 insertions, 2 deletions
diff --git a/net/tn5250/Makefile b/net/tn5250/Makefile
index a67d76fc504a..f9cd2cd23335 100644
--- a/net/tn5250/Makefile
+++ b/net/tn5250/Makefile
@@ -10,8 +10,7 @@ MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= 5250 Telnet protocol and Terminal
-USES= libtool ncurses
-USE_OPENSSL= yes
+USES= libtool ncurses ssl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-os-dir=no --with-ssl=${OPENSSLBASE}
USE_LDCONFIG= yes
diff --git a/net/tn5250/files/patch-lib5250_sslstream.c b/net/tn5250/files/patch-lib5250_sslstream.c
new file mode 100644
index 000000000000..1f2e09cdf9d4
--- /dev/null
+++ b/net/tn5250/files/patch-lib5250_sslstream.c
@@ -0,0 +1,24 @@
+--- lib5250/sslstream.c.orig 2008-11-21 08:12:21 UTC
++++ lib5250/sslstream.c
+@@ -368,13 +368,19 @@ int tn5250_ssl_stream_init (Tn5250Stream
+ methstr[4] = '\0';
+ }
+
++#ifndef OPENSSL_NO_SSL2
+ if (!strcmp(methstr, "ssl2")) {
+ meth = SSLv2_client_method();
+ TN5250_LOG(("SSL Method = SSLv2_client_method()\n"));
+- } else if (!strcmp(methstr, "ssl3")) {
++ } else
++#endif
++#ifndef OPENSSL_NO_SSL3
++ if (!strcmp(methstr, "ssl3")) {
+ meth = SSLv3_client_method();
+ TN5250_LOG(("SSL Method = SSLv3_client_method()\n"));
+- } else {
++ } else
++#endif
++ {
+ meth = SSLv23_client_method();
+ TN5250_LOG(("SSL Method = SSLv23_client_method()\n"));
+ }