Commit Graph

34 Commits

Author SHA1 Message Date
he 9dfcf4d44d Rename debug to telnet_debug, to allow static linking with libssh.a. 2006-02-02 19:33:12 +00:00
dsl e77d2c6bcd Change first arg of printsub() for 'char' to 'int' so that it builds again.
This matches the binary interface from before if was de-__Peed (or at least
that of K&R C).
In any case having arguments (and return values) of char and short isn't
especially sensible.
2005-02-06 20:39:35 +00:00
tron de397c1aee Fix build errors caused by de-__P()--ing "libtelnet". 2005-02-06 17:51:40 +00:00
heas 209ebbab46 - deal with a dead tty in ttyflush() by cleaning-up and exiting instead of
returning a failure code and processing that all the way up the stack.
- deal with a dead peer similarly and do it without setjmp/longjmp() (at
  christos' request).

These fix bin/20304 and my own observations when the remote abruptly closes
the connection.
2004-03-20 23:26:05 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 1f245ffbb2 more unifdef 2003-07-14 16:06:46 +00:00
itojun 21f5307c6f remove unneeded #ifdef. (confirmed that same *.o is generated) 2003-07-14 15:56:28 +00:00
itojun 7173f16649 use bounded copy ops 2003-07-12 14:29:35 +00:00
christos 2658386875 Ansify. 2003-06-18 20:51:00 +00:00
kanaoka d4a4b29e36 - Support -4 and -6. Approved by itojun. 2002-08-23 08:14:20 +00:00
wiz 3bd3ab5387 Change _putchar definition to match curses.h's expectations, and
remove some __ left over from de-P()'ing (mmm, inconsistency).
Noted by Juergen Hannken-Illjes.
2002-06-14 09:55:08 +00:00
wiz 797d779cf1 De-register, de-__P. Remove #ifndef __STDC__ parts.
defines.h: Be more careful with braces in macro definitions.
2002-06-14 00:30:56 +00:00
wiz c52d355d71 "wierd" is weird. 2001-08-20 12:20:01 +00:00
wiz ccfe29f3cf Symmetric has one s and two m's. 2001-06-18 11:23:00 +00:00
itojun 78c2b5a427 make usr.bin/tn3270 buildable. make sizeof(tline) usable. 2001-01-04 05:58:41 +00:00
thorpej 5c099b14c1 Bring the telnet situation back into better shape. Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
  module.
- Add connection encryption support to the Heimdal Kerberos 5
  module.  Hints on this can be taken from the MIT Kerberos 5
  module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
2000-06-22 06:47:42 +00:00
assar 0bb524cb22 (net_write): update prototype 2000-02-01 02:28:23 +00:00
itojun a58fc4d3b8 sync with latest libipsec/kernel. 2000-01-31 14:25:42 +00:00
mycroft f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
abs 8714299f16 Add -N option (numeric host address) - idea taken from FreeBSD.
Fix bug where -E8 would still pick up 0xFF as escape (again from FreeBSD)
1999-07-28 06:35:15 +00:00
itojun 9bee021415 IPv6-ready telnet.
source route (telnet @localhost@localhost) works for IPv6 as well.
1999-07-02 15:09:10 +00:00
christos f9688c3369 Make sure termio is defined to termios. 1998-12-20 14:48:33 +00:00
christos 81c93f4c32 - synchronize with the domestic version
- setupterm -> setup_term
- char -> unsigned char
1998-11-06 19:54:18 +00:00
mycroft a405bce56c const poisoning. 1998-07-26 22:26:29 +00:00
christos 346d9496c8 Adjust for tn3270 cleanup. 1998-03-04 13:51:57 +00:00
christos 434ea11b22 WARNSify and fix problems passing int * -> long * 1998-02-27 10:44:12 +00:00
thorpej 077a490a9f RCS id cosmetics. 1996-02-28 21:03:49 +00:00
jtk 42a670f945 restore local change mistakenly overrun in import of 95.10.23
telnet--keep track of a client-side close and just turn off one
direction of the socket; keep running until server side closes down too.
1996-02-24 07:32:00 +00:00
jtk 583a8146a9 update to 95.10.23 version of telnet
also, RCS ID police
1996-02-24 01:18:25 +00:00
mycroft 451c744306 If we get an EOF on stdin, close the write side of the TCP connection, but
wait for the remote host to close the connection before exiting.
1995-03-17 18:03:06 +00:00
cgd dbacaea969 headers, and use INADDR_NONE appropriately. 1994-12-24 17:50:00 +00:00
cgd 0582c91393 new telnet from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
1994-02-25 03:00:16 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00