summaryrefslogtreecommitdiff
path: root/net/ettercap
diff options
context:
space:
mode:
authorkhorben <khorben>2016-03-29 21:59:15 +0000
committerkhorben <khorben>2016-03-29 21:59:15 +0000
commit3d6faa264495440b1962bfc71d92a259d6b0dd11 (patch)
treeb1e580cc3443090ad13b4fba0b84b8a501e2449f /net/ettercap
parent87e7585f9e1c56986bc80f21399cc6914c1465bb (diff)
downloadpkgsrc-3d6faa264495440b1962bfc71d92a259d6b0dd11.tar.gz
Fix build without support for SSLv2
Diffstat (limited to 'net/ettercap')
-rw-r--r--net/ettercap/distinfo3
-rw-r--r--net/ettercap/patches/patch-src_ec__grell.c18
2 files changed, 20 insertions, 1 deletions
diff --git a/net/ettercap/distinfo b/net/ettercap/distinfo
index bef5a043ba4..42733e57281 100644
--- a/net/ettercap/distinfo
+++ b/net/ettercap/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2015/11/04 00:34:59 agc Exp $
+$NetBSD: distinfo,v 1.17 2016/03/29 21:59:15 khorben Exp $
SHA1 (ettercap-0.6.b.tar.gz) = 8cc1bbfe61e894620deef74cff0b8ca5a0b9e628
RMD160 (ettercap-0.6.b.tar.gz) = 05240616b98fdf1c4486837c6b8ff716188ab48b
@@ -11,3 +11,4 @@ SHA1 (patch-ad) = c7f997876c5b76fff77f70280f5b5fe523778abf
SHA1 (patch-ae) = 58ea3d1500fb5f1c4b38ec795b884cfb2dd0ab42
SHA1 (patch-af) = 27d9d6ca720758d68ef5e091140e8dfa5156e3ed
SHA1 (patch-ag) = 2051a8c8e3ae0e246cbccd37cea355615a6ac677
+SHA1 (patch-src_ec__grell.c) = e70bafabfd95e7079d1d975a651fb5a6a2cdc5fc
diff --git a/net/ettercap/patches/patch-src_ec__grell.c b/net/ettercap/patches/patch-src_ec__grell.c
new file mode 100644
index 00000000000..21005124193
--- /dev/null
+++ b/net/ettercap/patches/patch-src_ec__grell.c
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_ec__grell.c,v 1.1 2016/03/29 21:59:15 khorben Exp $
+
+--- src/ec_grell.c.orig 2003-07-10 08:59:09.000000000 +0000
++++ src/ec_grell.c
+@@ -447,11 +447,13 @@ static int server_init(char *buf, size_t
+
+ if (SSL_connect(son_data->ssl_server)!=1)
+ {
++#ifndef OPENSSL_NO_SSL2
+ son_data->ssl_ctx_server = SSL_CTX_new(SSLv2_client_method());
+ son_data->ssl_server = SSL_new(son_data->ssl_ctx_server);
+ SSL_set_connect_state(son_data->ssl_server);
+ SSL_set_fd(son_data->ssl_server, son_data->server_fd);
+ if (SSL_connect(son_data->ssl_server)!=1)
++#endif
+ {
+ son_data->ssl_ctx_server = SSL_CTX_new(TLSv1_client_method());
+ son_data->ssl_server = SSL_new(son_data->ssl_ctx_server);