Commit Graph

29 Commits

Author SHA1 Message Date
maya 68daebb7bc unifdef compatibility for old BSD servers. This has been
disabled, so no binary change. from openbsd.
2019-01-05 06:47:24 +00:00
christos dbe0036b5a minor cleanup:
- more const
- prevent overflow of the argument vector
- change a lot of unsigned to signed to eliminate casts
2018-12-14 23:40:17 +00:00
maya 342e9885b0 ExitString is used for error exit, do the minimum necessary here.
Avoid infinite loop:
telrcv->suboption->ExitString->SetForExit->telrcv

Reported by hacker fantastic, thanks!
2018-12-13 05:15:11 +00:00
maya 233931799b static-ify. 2018-12-13 05:07:03 +00:00
maya 7c20b20625 unifdef TN3270 which is never defined (and wouldn't build if it was)
delete tn3270 file no longer needed.
SetIn3270(); expands to nothing now, so remove it.

No functional change.
2018-12-13 04:49:19 +00:00
maya 3a1a1fef8c switch sprintf to snprintf in places.
Reported by hacker fantastic, thanks!

ok xtos.
2018-12-12 19:05:32 +00:00
christos fcdbba429b PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- Minimal diffs to separate MKCRYPTO from USE_KERBEROS
2012-01-09 16:08:55 +00:00
elad 1232ea27c4 PR/18906: roskens at elfin dot net: misc. select() to poll() updates.
Adapted to -current by myself, thanks for the patch!
2006-10-07 17:27:57 +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
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
mycroft aae6c28cf9 null commit 2002-09-23 12:44:34 +00:00
itojun 6248b5281d poll.h, not sys/poll.h 2002-09-23 03:29:10 +00:00
mycroft 0d30d3ce37 Duh, generate the pollfd arrays outside of loops, not that it really matters. 2002-09-18 19:48:58 +00:00
mycroft 6053f5543a select() -> poll() 2002-09-18 19:40:34 +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
thorpej d12f4d05fa Fix unused variable warning in the non-ENCRYPTION case (e.g. when
built at tn3270(1)).
2000-06-22 07:11:11 +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
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 583a8146a9 update to 95.10.23 version of telnet
also, RCS ID police
1996-02-24 01:18:25 +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