aboutsummaryrefslogtreecommitdiff
path: root/net/cryptcat
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-05-25 09:09:03 +0000
committerCy Schubert <cy@FreeBSD.org>2023-05-25 09:09:03 +0000
commit18bba8441a4ddd827edf80284c23dddf41979069 (patch)
treef334540d57d7125b1a46c6dc58f1390fa1325a69 /net/cryptcat
parent8fc5e393c4a9e1589291f6580415636786dfd105 (diff)
downloadports-18bba8441a4ddd827edf80284c23dddf41979069.tar.gz
ports-18bba8441a4ddd827edf80284c23dddf41979069.zip
Diffstat (limited to 'net/cryptcat')
-rw-r--r--net/cryptcat/Makefile2
-rw-r--r--net/cryptcat/files/patch-netcat.c151
2 files changed, 150 insertions, 3 deletions
diff --git a/net/cryptcat/Makefile b/net/cryptcat/Makefile
index 32e350c65a55..f29b21f9093f 100644
--- a/net/cryptcat/Makefile
+++ b/net/cryptcat/Makefile
@@ -5,7 +5,7 @@ CATEGORIES= net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-unix-1.2/${PORTNAME}-unix-${PORTVERSION}
DISTNAME= ${PORTNAME}-unix-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= cy@FreeBSD.org
COMMENT= Standard netcat enhanced with twofish encryption
WWW= https://sourceforge.net/projects/cryptcat/
diff --git a/net/cryptcat/files/patch-netcat.c b/net/cryptcat/files/patch-netcat.c
index e4efd99385fa..a2c2b48a832f 100644
--- a/net/cryptcat/files/patch-netcat.c
+++ b/net/cryptcat/files/patch-netcat.c
@@ -1,5 +1,5 @@
---- netcat.c.orig 2005-10-18 17:42:05 UTC
-+++ netcat.c
+--- netcat.c.orig 2005-10-18 10:42:05.000000000 -0700
++++ netcat.c 2023-05-25 02:08:35.476614000 -0700
@@ -48,9 +48,6 @@
#else
#include <malloc.h>
@@ -23,3 +23,150 @@
#ifdef HAVE_RANDOM /* aficionados of ?rand48() should realize */
#define SRAND srandom /* that this doesn't need *strong* random */
+@@ -235,7 +238,7 @@
+ {
+ errno = 0;
+ if (o_verbose > 1) /* normally we don't care */
+- bail (wrote_txt, wrote_net, wrote_out);
++ bail (wrote_txt, (char*) wrote_net, (char *) wrote_out);
+ bail (" punt!");
+ }
+
+@@ -277,7 +280,7 @@
+ if (p != NULL)
+ memset (p, 0, s);
+ else
+- bail ("Hmalloc %d failed", s);
++ bail ("Hmalloc %d failed", (char *) s);
+ return (p);
+ } /* Hmalloc */
+
+@@ -465,7 +468,7 @@
+ if (servent) {
+ y = ntohs (servent->s_port);
+ if (x != y) /* "never happen" */
+- holler ("Warning: port-bynum mismatch, %d != %d", x, y);
++ holler ("Warning: port-bynum mismatch, %d != %d", (char *) x, (char *) y);
+ strncpy (portpoop->name, servent->s_name, sizeof (portpoop->name));
+ } /* if servent */
+ goto gp_finish;
+@@ -565,7 +568,7 @@
+ if (! block)
+ bail ("loadports: no block?!");
+ if ((! lo) || (! hi))
+- bail ("loadports: bogus values %d, %d", lo, hi);
++ bail ("loadports: bogus values %d, %d", (char *) lo, (char *) hi);
+ x = hi;
+ while (lo <= x) {
+ block[x] = 1;
+@@ -671,7 +674,7 @@
+ if (errno != EADDRINUSE)
+ break;
+ else {
+- holler ("retrying local %s:%d", inet_ntoa (lclend->sin_addr), lp);
++ holler ("retrying local %s:%d", inet_ntoa (lclend->sin_addr), (char *) lp);
+ sleep (2);
+ errno = 0; /* clear from sleep */
+ } /* if EADDRINUSE */
+@@ -679,7 +682,7 @@
+ } /* if lad or lp */
+ if (rr)
+ bail ("Can't grab %s:%d with bind",
+- inet_ntoa(lclend->sin_addr), lp);
++ inet_ntoa(lclend->sin_addr), (char *) lp);
+
+ if (o_listen)
+ return (nnetfd); /* thanks, that's all for today */
+@@ -824,7 +827,7 @@
+ strcat (bigbuf_net, "any");
+ strcat (bigbuf_net, "] %d ...");
+ z = ntohs (lclend->sin_port);
+- holler (bigbuf_net, z);
++ holler (bigbuf_net, (char *) z);
+ } /* verbose -- whew!! */
+
+ /* UDP is a speeeeecial case -- we have to do I/O *and* get the calling
+@@ -936,9 +939,9 @@
+ x = 1;
+ if (x) /* guilty! */
+ bail ("invalid connection to [%s] from %s [%s] %d",
+- cp, whozis->name, whozis->addrs[0], z);
++ cp, whozis->name, whozis->addrs[0], (char *) z);
+ holler ("connect to [%s] from %s [%s] %d", /* oh, you're okay.. */
+- cp, whozis->name, whozis->addrs[0], z);
++ cp, whozis->name, whozis->addrs[0], (char *) z);
+ return (nnetfd); /* open! */
+
+ dol_tmo:
+@@ -966,7 +969,7 @@
+
+ rr = write (fd, bigbuf_in, 1);
+ if (rr != 1)
+- holler ("udptest first write failed?! errno %d", errno);
++ holler ("udptest first write failed?! errno %d", (char *) errno);
+ if (o_wait)
+ sleep (o_wait);
+ else {
+@@ -1143,7 +1146,7 @@
+ /* if you don't have all this FD_* macro hair in sys/types.h, you'll have to
+ either find it or do your own bit-bashing: *ding1 |= (1 << fd), etc... */
+ if (fd > FD_SETSIZE) {
+- holler ("Preposterous fd value %d", fd);
++ holler ("Preposterous fd value %d", (char *) fd);
+ return (1);
+ }
+ FD_SET (fd, ding1); /* global: the net is open */
+@@ -1251,7 +1254,7 @@
+
+ /* sanity check. Works because they're both unsigned... */
+ if ((rzleft > 8200) || (rnleft > 8200)) {
+- holler ("Bogus buffers: %d, %d", rzleft, rnleft);
++ holler ("Bogus buffers: %d, %d", (char *) rzleft, (char *) rnleft);
+ rzleft = rnleft = 0;
+ }
+ /* net write retries sometimes happen on UDP connections */
+@@ -1435,7 +1438,7 @@
+ if ((x) && (x == (x & 0x1c))) /* mask off bits of fukt values */
+ gatesptr = x;
+ else
+- bail ("invalid hop pointer %d, must be multiple of 4 <= 28", x);
++ bail ("invalid hop pointer %d, must be multiple of 4 <= 28", (char *) x);
+ break;
+ case 'g': /* srcroute hop[s] */
+ if (gatesidx > 8)
+@@ -1565,7 +1568,7 @@
+ #endif /* GAPING_SECURITY_HOLE */
+ x = readwrite (netfd); /* it even works with UDP! */
+ if (o_verbose > 1) /* normally we don't care */
+- holler (wrote_txt, wrote_net, wrote_out);
++ holler (wrote_txt, (char *) wrote_net, (char *) wrote_out);
+ exit (x); /* "pack out yer trash" */
+ } else /* if no netfd */
+ bail ("no connection");
+@@ -1624,7 +1627,7 @@
+ if (netfd > 0) { /* Yow, are we OPEN YET?! */
+ x = 0; /* pre-exit status */
+ holler ("%s [%s] %d (%s) open",
+- whereto->name, whereto->addrs[0], curport, portpoop->name);
++ whereto->name, whereto->addrs[0], (char *) curport, portpoop->name);
+ #ifdef GAPING_SECURITY_HOLE
+ if (pr00gie) /* exec is valid for outbound, too */
+ doexec (netfd);
+@@ -1637,7 +1640,7 @@
+ Give it another -v if you want to see everything. */
+ if ((Single || (o_verbose > 1)) || (errno != ECONNREFUSED))
+ holler ("%s [%s] %d (%s)",
+- whereto->name, whereto->addrs[0], curport, portpoop->name);
++ whereto->name, whereto->addrs[0], (char *) curport, portpoop->name);
+ } /* if netfd */
+ close (netfd); /* just in case we didn't already */
+ if (o_interval)
+@@ -1652,7 +1655,7 @@
+
+ errno = 0;
+ if (o_verbose > 1) /* normally we don't care */
+- holler (wrote_txt, wrote_net, wrote_out);
++ holler (wrote_txt, (char *) wrote_net, (char *) wrote_out);
+ if (Single)
+ exit (x); /* give us status on one connection */
+ exit (0); /* otherwise, we're just done */