Commit Graph

43 Commits

Author SHA1 Message Date
agc 8e6ab8837d Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22284, verified by myself.
2003-08-07 09:46:37 +00:00
matt 9925d4a0c7 Since telnetd has ignored the USER environment variable for logging in for
quite a bit of time, make telnetd ignore it completely now.  This results
in the :if=: entry in the default gettytab entry to honored instead of
being ignored.  The -h option to telnetd will continue to suppress the
inclusion of :if=:
2003-07-22 00:03:26 +00:00
itojun 427af575fe use bounded string op. bump shlib major for libtelnet due to API change. 2003-07-15 10:14:54 +00:00
itojun 261e336de5 SIGINFO is defined 2003-07-14 16:17:37 +00:00
itojun 625dced967 remove unneeded #ifdefs. improves readability.
(confirmed that exact same *.o is produced)
2003-07-14 15:55:53 +00:00
itojun aa50bfde15 use bounded string op (there still are remains) 2003-07-13 09:40:20 +00:00
itojun 936d35bb1b use strlcpy 2003-05-17 21:28:53 +00:00
christos cc1171039e PR/21233: Onno van der Linden: -U option does not work as advertised. 2003-05-09 20:50:35 +00:00
mycroft e62e5a8b1a Remove dead code. 2002-09-20 19:11:17 +00:00
mycroft 720a68f0ca select() -> poll() 2002-09-18 20:58:56 +00:00
christos 9d7f515ba2 add some more ifdefs, so that we don't define variables we don't use. 2002-08-20 13:58:22 +00:00
itojun 80c664d730 implement -u <len>. PR 13676 2002-01-31 07:54:50 +00:00
wiz 0b273592ec -edebug should only be mentioned in the help #ifdef ENCRYPTION, not #ifdef
AUTHENTICATION. Noted (with patch) by Brian Ginsbach.
2001-09-02 18:56:26 +00:00
wiz 9731e34bd0 Remove code #ifdef'd on NEWINIT (never used on NetBSD).
Sync with Cray, patch by Brian Ginsbach in private mail.
2001-08-30 23:25:15 +00:00
wiz 4538e1cec2 Remove lots of #ifdef's for dead Cray hardware and obsolete UNICOS releases;
also some Cray-specific fixes. No change for NetBSD.
From Brian Ginsbach of Cray Inc. in bin/13614 and private mail.
2001-08-24 00:14:03 +00:00
wiz b96d0a9c47 Fix typo, and duplicate ';'. From bin/13667 by Brian Ginsbach. 2001-08-20 11:14:05 +00:00
wiz c54e018e90 Add some (const char *) casts per bin/13667 by Brian Ginsbach. 2001-08-20 11:01:48 +00:00
itojun eb2e3cb617 bound-check all "*nfrontp++" code. from openbsd/heimdal.
bark if file descriptor goes above FD_SETSIZE.  from openbsd.

XXX needs more checking.
XXX what is tab stop size for this code?  need more consistency...
XXX we should really remove #ifdef CRAY, UNICOS5 and such.
we just cannot read it through.
2001-07-19 04:57:49 +00:00
christos 5dea9a59e1 fix redundant declarations. 2001-02-04 22:32:15 +00:00
lukem 412ee5c5f1 use LOG_ERR for fatal errors, LOG_WARNING for other errors
minor knf
deprecate LOG_ODELAY; it's the default
2001-01-10 02:51:37 +00:00
christos 5135a422f1 Buffer overflow and environment passing fixes [originally inspired from
FreeBSD]. We really didn't need the environment fixes, but for the sake
of keeping the code as close as possible...
2000-11-19 20:17:39 +00:00
itojun 697db6345c make error case handling in -daemon case meet with other portion of the code.
(use fprintf-then-exit, not errx - costmetic)
2000-08-18 03:25:52 +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
ad 3476632b59 Make 'if' capability from gettytab work. *shudder*. 2000-01-13 13:11:31 +00:00
itojun 2c4f20dd99 do not touch __ss_len directly, they are not supposed to be touched. 1999-12-16 06:00:24 +00:00
thorpej b4da0f0b3c Nuke some whitespace. 1999-07-11 03:04:14 +00:00
thorpej 580c3519b7 Put the RCS ID in the correct place. 1999-07-11 03:00:07 +00:00
itojun 5b5d822bce dual-stack telnetd. 1999-07-02 06:32:08 +00:00
dean 63f386cdd0 Fix for PR 5821
- s/SecurID/SECURELOGIN/g and define SECURELOGIN in Makefile
- update man page to reflect S/Key and Kerboros authentication used
  not SecurID
1999-02-12 05:30:11 +00:00
msaitoh 4944940fcf Declare ints, too, don't default them. 1998-07-09 18:32:52 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
enami 71d6ede458 No need to declare optind and optarg. 1997-10-20 02:12:17 +00:00
mikel 0b47cd38cf don't include <sys/cdefs.h> twice, kill old-style getpty() declaration 1997-10-16 06:52:52 +00:00
lukem 2ce4ef15e6 use <termcap.h> 1997-10-14 01:14:20 +00:00
mrg ee62445dbf WARNS?=1. RCS ids. 1997-10-08 08:45:07 +00:00
enami f002de2f5a Put a whitespace after the keyword `switch'. 1997-10-08 01:09:02 +00:00
enami 7c92c8b774 Compare a return value of getopt() against -1 instead of EOF. 1997-10-08 01:04:31 +00:00
tls 9f01fb5000 apply Thorsten's patch to add gettytab support to telnetd. 1996-03-20 04:25:53 +00:00
thorpej 14c6919f1d RCS id cosmetics. 1996-02-28 20:38:08 +00:00
jtk 42e1b6b73d update to telnetd from 95.10.23 version. Includes Borman's scrub_env()
to keep stuff out of the environment on the way to exec (we already have
one in the state machine that keeps them from arriving over the wire, so
this should be redundant, but it'll make any further updates easier to
have it present).

also, RCS Id police.
1996-02-24 01:22:12 +00:00
cgd 290a2c4f88 new telnetd from ftp.cray.com. Encryption support ripped out, pending
figuring out what to do about it...
1994-02-25 03:20:39 +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