summaryrefslogtreecommitdiffstats
path: root/eBones
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-04-23 05:18:43 +0000
committerpst <pst@FreeBSD.org>1996-04-23 05:18:43 +0000
commitd73d5ee489af9ec86a8ea3826fd9d5b014f3d84f (patch)
treea5cede8a25f13c625b46e62efa487feaca306544 /eBones
parent2a55e3d7aa65ad207f3877f30d105aefe47e30dd (diff)
downloadFreeBSD-src-d73d5ee489af9ec86a8ea3826fd9d5b014f3d84f.zip
FreeBSD-src-d73d5ee489af9ec86a8ea3826fd9d5b014f3d84f.tar.gz
Add support for socks
Diffstat (limited to 'eBones')
-rw-r--r--eBones/usr.bin/telnet/Makefile9
-rw-r--r--eBones/usr.bin/telnet/main.c4
2 files changed, 12 insertions, 1 deletions
diff --git a/eBones/usr.bin/telnet/Makefile b/eBones/usr.bin/telnet/Makefile
index 87ee4cf..0a3fdc0 100644
--- a/eBones/usr.bin/telnet/Makefile
+++ b/eBones/usr.bin/telnet/Makefile
@@ -31,7 +31,7 @@
# SUCH DAMAGE.
#
# @(#)Makefile 8.1 (Berkeley) 6/6/93
-# $Id$
+# $Id: Makefile,v 1.13 1996/03/11 16:17:58 markm Exp $
#
PROG= telnet
@@ -53,4 +53,11 @@ DPADD+= ${LIBDES} ${LIBKRB}
# Used only in krb4encpwd.c and rsaencpwd.c (libtelnet), not yet active
#LDADD+= -ldescrypt
+.if defined(SOCKS)
+CFLAGS+=-DSOCKS
+CFLAGS+=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten \
+ -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect
+LDADD+= -lsocks
+.endif
+
.include <bsd.prog.mk>
diff --git a/eBones/usr.bin/telnet/main.c b/eBones/usr.bin/telnet/main.c
index 09ac26c..08cb578 100644
--- a/eBones/usr.bin/telnet/main.c
+++ b/eBones/usr.bin/telnet/main.c
@@ -122,6 +122,10 @@ main(argc, argv)
extern int forward_flags;
#endif /* FORWARD */
+#ifdef SOCKS
+ SOCKSinit(argv[0]);
+#endif /* SOCKS */
+
tninit(); /* Clear out things */
#if defined(CRAY) && !defined(__STDC__)
_setlist_init(); /* Work around compiler bug */
OpenPOWER on IntegriCloud