aboutsummaryrefslogtreecommitdiff
path: root/libexec/telnetd/telnetd.c
Commit message (Collapse)AuthorAgeFilesLines
* Very big makeover in the way telnet, telnetd and libtelnet are built.Mark Murray2003-07-161-1117/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously, there were two copies of telnet; a non-crypto version that lived in the usual places, and a crypto version that lived in crypto/telnet/. The latter was built in a broken manner somewhat akin to other "contribified" sources. This meant that there were 4 telnets competing with each other at build time - KerberosIV, Kerberos5, plain-old-secure and base. KerberosIV is no longer in the running, but the other three took it in turns to jump all over each other during a "make buildworld". As the crypto issue has been clarified, and crypto _calls_ are not a problem, crypto/telnet has been repo-copied to contrib/telnet, and with this commit, all telnets are now "contribified". The contrib path was chosen to not destroy history in the repository, and differs from other contrib/ entries in that it may be worked on as "normal" BSD code. There is no dangerous crypto in these sources, only a very weak system less strong than enigma(1). Kerberos5 telnet and Secure telnet are now selected by using the usual macros in /etc/make.conf, and the build process is unsurprising and less treacherous. Notes: svn path=/head/; revision=117675
* Mrege from crypto telnet with "make unifdef". This gets a bunch ofMark Murray2003-05-111-5/+5
| | | | | | | $FreeBSD$ tags and some debug variable safety belts. Notes: svn path=/head/; revision=114912
* Merge the (in)complete ANSIfication work from src/crypto/telnet.Mark Murray2001-11-301-6/+6
| | | | Notes: svn path=/head/; revision=87156
* After running a "make unifdef", commit the resultant diffs.Mark Murray2001-11-301-214/+60
| | | | | | | This code is now a complete sunset of the crypto (master) code. Notes: svn path=/head/; revision=87153
* Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.Mark Murray2001-08-291-248/+0
| | | | Notes: svn path=/head/; revision=82497
* Feature merging and diff reduction between this code and crypto telnet.Mark Murray2001-08-201-85/+36
| | | | | | | | Also remove conditional (AUTHENTICATION) code as we have never compiled it here, and it is doubtful that it even works in this scenario. Notes: svn path=/head/; revision=81963
* MFcrypto/telnet/telnetd: Correct semantics of output_data*() and netflush()Kris Kennaway2001-07-231-2/+0
| | | | | | | to ensure deterministic operation Notes: svn path=/head/; revision=80225
* MFCrypto: fixed the remote buffer overflow.Ruslan Ermilov2001-07-201-32/+17
| | | | Notes: svn path=/head/; revision=80047
* Fix typo: wierd -> weird.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | There is no such thing as wierd in the english language. Notes: svn path=/head/; revision=72082
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-2/+3
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* Correct definition of MAXHOSTNAMELEN in ifdef'ed code.Kris Kennaway2000-11-261-1/+1
| | | | | | | | Submitted by: Edwin Groothuis <mavetju@chello.nl> PR: bin/22787 Notes: svn path=/head/; revision=69223
* Don't use sizeof() on a pointer when we really wanted to measureKris Kennaway2000-11-191-1/+0
| | | | | | | | | | the length of the array. Noticed by: Christos Zoulas <christos@ZOULAS.COM> Obtained from: OpenBSD Notes: svn path=/head/; revision=68890
* Filter out some more magic environment variables used by libraries linkedKris Kennaway2000-10-311-2/+2
| | | | | | | | | | | with telnetd. This should really be done with a positive filter - i.e. only allow through a configured list of variables. Also do some buffer-safety cleanups while I'm here - I don't think these are exploitable. Notes: svn path=/head/; revision=68038
* several tcp apps IPv6 updateYoshinobu Inoue2000-01-251-34/+54
| | | | | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=56590
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Determine the host name using an array size ofBrian Somers1999-04-081-2/+3
| | | | | | | | | | | | MAXHOSTNAMELEN and call trimdomain() before implementing the -u option. This allows local hosts of a lan with a long domain name to appear properly in utmp by base host name (w/o domain) rather than by IP number. Notes: svn path=/head/; revision=45492
* Really fix -u....Brian Somers1999-04-071-2/+6
| | | | Notes: svn path=/head/; revision=45423
* Ensure that things returned by gethostname() andBrian Somers1999-04-071-5/+11
| | | | | | | | | | | | | friends are terminated and allow for a maximum host name length of MAXHOSTNAMELEN - 1. Put parenthesis around sizeof args. Make some variables static. Fix telnetd -u (broken by my last commit) Prompted by: bde Notes: svn path=/head/; revision=45422
* Use realhostname() rather than various combinations ofBrian Somers1999-04-061-39/+8
| | | | | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length. Notes: svn path=/head/; revision=45393
* After receiving a connection and doing a reverseBrian Somers1999-04-061-2/+18
| | | | | | | | | | | | | lookup on the incoming IP, do a forward lookup on the result and make sure that the IP is in the resulting list. If it's not, put the IP number in utmp/wtmp instead of the rogue name. Stolen from: rlogind Suggested by: sef Notes: svn path=/head/; revision=45353
* Old stuff laying around: Don't use a function called getstr(), that hasPeter Wemm1998-12-161-6/+6
| | | | | | | | nasty consequences when the system curses is ncurses as this conflicts with a ncurses funciton and causes recursion. Notes: svn path=/head/; revision=41857
* telnetd does not recognize the if (display file before login) gettytab flag.Poul-Henning Kamp1998-04-261-1/+19
| | | | | | | | | PR: 6365 Reviewed by: phk Submitted by: Jason Garman <init@risen.org> Notes: svn path=/head/; revision=35460
* Use err(3). Remove progname and trailing \n in syslog strings.Philippe Charnier1997-12-031-50/+39
| | | | Notes: svn path=/head/; revision=31511
* PR: bin/771 and bin/1037 are resolved by this changeFrank Durda IV1997-10-081-1/+17
| | | | | | | | | | | | | | | | | | | This change changes the default handling of linemode so that older and/or stupider telnet clients can still get wakeup characters like <ESC> and <CTRL>D to work correctly multiple times on the same line, as in csh "set filec" operations. It also causes CR and LF characters to be read by apps in certain terminal modes consistently, as opposed to returning CR sometimes and LF sometimes, which broke existing apps. The change was shown to fix the problem demonstrated in the FreeBSD telnet client, along with the telnet client in Solaris, SCO, Windows '95 & NT, DEC OSF, NCSA, and others. A similar change will be incorporated in the crypto version of telnetd. This resolves bin/771 and bin/1037. Notes: svn path=/head/; revision=30211
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-281-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24349
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22989
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Some buffer overrun fixes and removed check for username starting with "-"Paul Traina1997-01-071-5/+9
| | | | | | | | | (replacied it with a getopt stopper (--) instead, which is more correct). Obtained from: OpenBSD Notes: svn path=/head/; revision=21403
* add forgotten $Id$Wolfram Schneider1996-09-221-0/+2
| | | | Notes: svn path=/head/; revision=18471
* Add a ``-P altlogin'' option which allows the sysadmin to specify anPeter Wemm1996-08-131-1/+6
| | | | | | | alternate login(1) type program to run. Notes: svn path=/head/; revision=17568
* Fixed bug introduced with the change of startslave()...two argumentsDavid Greenman1995-09-111-3/+3
| | | | | | | | | were chopped off of the function call and garbage was passed instead. The solution involves making some variable globals as well as fixing the call to have all the arguments. Notes: svn path=/head/; revision=10678
* Delay starting login process until option negotiation is complete toPaul Traina1995-09-051-22/+7
| | | | | | | | | avoid race condition on connections with larger round-trip-times. Submitted by: John Capo & Peter Wemm Notes: svn path=/head/; revision=10560
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8870
* Remove the scary bits from telnetd - no more encryption left here.Geoff Rehmet1994-08-121-33/+1
| | | | | | | | Only crypt.c in libc remains. Reviewed by: Geoff Rehmet Notes: svn path=/head/; revision=2054
* BSD 4.4 Lite Libexec SourcesRodney W. Grimes1994-05-271-0/+1582
Notes: svn path=/vendor/CSRG/dist/; revision=1592