aboutsummaryrefslogtreecommitdiff
path: root/contrib/telnet
Commit message (Collapse)AuthorAgeFilesLines
* Commit IPv6 support for FAST_IPSEC to the tree.George V. Neville-Neil2007-07-011-1/+1
| | | | | | | | | | | This commit includes all remaining changes for the time being including user space updates. Submitted by: bz Approved by: re Notes: svn path=/head/; revision=171135
* Markup nits.Ruslan Ermilov2006-09-291-2/+2
| | | | Notes: svn path=/head/; revision=162826
* Remove bogus casts of valid integer ioctl() arguments.Ruslan Ermilov2006-09-261-4/+4
| | | | Notes: svn path=/head/; revision=162671
* o Mention .telnetrc DEFAULT keyword.Maxim Konovalov2006-09-181-1/+8
| | | | | | | | | PR: bin/100496 (sort of) Obtained from: NetBSD, heas@netbsd MFC after: 3 weeks Notes: svn path=/head/; revision=162402
* NI_WITHSCOPEID cleanupHajimu UMEMOTO2005-05-211-1/+1
| | | | Notes: svn path=/head/; revision=146468
* Correct a pair of buffer overflows in the telnet(1) command:Jacques Vidrine2005-03-281-6/+24
| | | | | | | | | | | | | | | | | | | | | | | (CAN-2005-0468) A heap buffer overflow in env_opt_add() and related functions. (CAN-2005-0469) A global uninitialized data section buffer overflow in slc_add_reply() and related functions. As a result of these vulnerabilities, it may be possible for a malicious telnet server or active network attacker to cause telnet(1) to execute arbitrary code with the privileges of the user running it. Security: CAN-2005-0468, CAN-2005-0469 Security: FreeBSD-SA-05:01.telnet Security: http://www.idefense.com/application/poi/display?id=220&type=vulnerabilities Security: http://www.idefense.com/application/poi/display?id=221&type=vulnerabilities These fixes are based in part on patches Submitted by: Solar Designer <solar@openwall.com> Notes: svn path=/head/; revision=144231
* Increase usefulness of telnet(1) as a protocol tester. By prependingAnton Berezin2005-02-283-4/+23
| | | | | | | | | | | | | "+" to the port number, disable option negotiation and allow transferring of data with high bit set. OKed by: markm (maintainer) PR: 52032 Submitted by: Valentin Nechayev <netch maybe-at netch stop kiev stop ua> MFC After: 2 weeks Notes: svn path=/head/; revision=142790
* - Soften sentence breaks.Ruslan Ermilov2005-01-212-71/+112
| | | | | | | | - Remove double whitespace. - Sort sections. Notes: svn path=/head/; revision=140601
* o Make telnet[d] -S (IP TOS) flag really work. We do not haveMaxim Konovalov2005-01-093-10/+32
| | | | | | | | | | | | /etc/iptos implementation so only numeric values supported. o telnetd.8: steal the -S flag description from telnet.1, bump the date of the document. MFC after: 6 weeks Notes: svn path=/head/; revision=139937
* o Add -4 and -6 flags to a man page and usage(). Bump the man pageMaxim Konovalov2005-01-052-3/+12
| | | | | | | date. Notes: svn path=/head/; revision=139713
* o Remove -t flag from getopt(3), it was killed in rev. 1.15 threeMaxim Konovalov2005-01-051-1/+1
| | | | | | | years ago. Notes: svn path=/head/; revision=139711
* o Print a correct status for unix domain sockets.Maxim Konovalov2005-01-041-0/+2
| | | | | | | | | | | | o Restore input mode when return from the command one. PR: bin/49983 Submitted by: Volker Stolz OK in general from: markm MFC after: 1 month Notes: svn path=/head/; revision=139687
* Add missing () to function invocation.Alexander Kabaev2004-07-281-1/+1
| | | | Notes: svn path=/head/; revision=132753
* Switch Advanced Sockets API for IPv6 from RFC2292 to RFC3542Hajimu UMEMOTO2003-10-241-16/+9
| | | | | | | | | | | | | (aka RFC2292bis). Though I believe this commit doesn't break backward compatibility againt existing binaries, it breaks backward compatibility of API. Now, the applications which use Advanced Sockets API such as telnet, ping6, mld6query and traceroute6 use RFC3542 API. Obtained from: KAME Notes: svn path=/head/; revision=121472
* EAI_ADDRFAMILY and EAI_NODATA was deprecated in RFC3493Hajimu UMEMOTO2003-10-231-2/+2
| | | | | | | | | | | (aka RFC2553bis). Now, getaddrinfo(3) returns EAI_NONAME instead of EAI_NODATA. Our getaddrinfo(3) nor getnameinfo(3) didn't use EAI_ADDRFAMILY. Obtained from: KAME Notes: svn path=/head/; revision=121425
* Implement what has been documented for a long time: make -debug switchHartmut Brandt2003-08-131-0/+5
| | | | | | | | | on socket debugging. Okay'ed by: markm Notes: svn path=/head/; revision=118865
* Fix up external variables named "debug" that have a horrible habitMark Murray2003-05-115-8/+8
| | | | | | | | | | | of conflicting with other, similarly named functions in static libraries. This is done mostly by renaming the var if it is shared amongst modules, or making it static otherwise. OK'ed by: re(scottl) Notes: svn path=/head/; revision=114911
* Use __FBSDID vs. rcsid[]. Also protect sccs[] and copyright[] from GCC 3.3.David E. O'Brien2003-05-0419-81/+79
| | | | Notes: svn path=/head/; revision=114630
* Unbreak Kerberos 5 authentication in telnet.Jacques Vidrine2003-03-061-0/+24
| | | | | | | | | (Credential forwarding is still broken.) PR: bin/45397 Notes: svn path=/head/; revision=111946
* Background:Jacques Vidrine2003-01-292-14/+2
| | | | | | | | | | | | | | | | | | | | | | | | When libdes was replaced with OpenSSL's libcrypto, there were a few interfaces that the former implemented but the latter did not. Because some software in the base system still depended upon these interfaces, we simply included them in our libcrypto (rnd_keys.c). Now, finally get around to removing the dependencies on these interfaces. There were basically two cases: des_new_random_key -- This is just a wrapper for des_random_key, and these calls were replaced. des_init_random_number_generator et. al. -- A few functions were used by the application to seed libdes's PRNG. These are not necessary when using libcrypto, as OpenSSL internally seeds the PRNG from /dev/random. These calls were simply removed. Again, some of the Kerberos 4 files have been taken off the vendor branch. I do not expect there to be future imports of KTH Kerberos 4. Notes: svn path=/head/; revision=110049
* add more RFC defined telnet optionsBill Fumerola2003-01-181-3/+8
| | | | | | | Reviewed by: ps Notes: svn path=/head/; revision=109466
* Merge argument parsing changes into this copy of telnet.Eric Melville2002-11-271-2/+6
| | | | | | | | Submitted by: markm Approved by: bmah Notes: svn path=/head/; revision=107299
* Permit the argument to the -s option to be a hostname. I see noDima Dorfman2002-10-021-1/+0
| | | | | | | | | | | reason to restrict this to a numeric address. PR: 41841 Submitted by: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>, Maxim Maximov <mcsi@agava.com> Notes: svn path=/head/; revision=104331
* Catch up with "base" telnet.Mark Murray2002-09-251-3/+3
| | | | | | | s/FALL THROUGH/FALLTHROUGH/ for lint(1). Notes: svn path=/head/; revision=103956
* Catch up with "base" telnet.Mark Murray2002-09-253-12/+8
| | | | | | | | s/FALL THROUGH/FALLTHROUGH/ for lint(1). s/Usage/usage/ for consistency. Notes: svn path=/head/; revision=103955
* From the requestor:Mark Murray2002-09-251-1/+1
| | | | | | | | | | | "Could you do me a favor and fix sys_bsd.c to get the howmany() macro from <sys/param.h>, instead of <sys/types.h>? This will save me from having to worry about the unsync'd bits before making the change." Requested by: mike Notes: svn path=/head/; revision=103954
* Encrypted strings (after hex decoding) aren't null terminated, becauseNick Sayer2002-08-221-4/+0
| | | | | | | | | | | 0 might simply be part of the ciphertext. PR: bin/40266 Submitted by: andr@dgap.mipt.ru MFC after: 3 days Notes: svn path=/head/; revision=102250
* Warnings fixes. Sort out some variable types.Mark Murray2002-06-261-6/+7
| | | | Notes: svn path=/head/; revision=98884
* Help fix warnings by marking an argument as unused.Mark Murray2002-06-261-0/+1
| | | | Notes: svn path=/head/; revision=98882
* Don't risk catching a signal while handling a signal for a dying child, as weJuli Mallett2002-05-271-0/+8
| | | | | | | | | | | | can then end up not properly clearing wtmp/utmp entries. PR: bin/37934 Submitted by: Sandeep Kumar <skumar@juniper.net> Reviewed by: markm MFC after: 2 weeks Notes: svn path=/head/; revision=97341
* unbreak build:Alfred Perlstein2002-05-115-3/+7
| | | | | | | | commands.c, sys_bsd.c: comment out/remove junk after #endif/#else network.c, terminal.c, utlities.c: include stdlib.h for exit(3) Notes: svn path=/head/; revision=96385
* Fix an external declaration that was causing telnetd to core dump.Mark Murray2002-05-061-1/+1
| | | | | | | | MFC after: 1 week PR: 37766 Notes: svn path=/head/; revision=96108
* Update build after import of Heimdal Kerberos 2002/02/17.Jacques Vidrine2002-02-191-1/+1
| | | | Notes: svn path=/head/; revision=90931
* Don't use non-signal-safe functions (exit(3) in this case) inSheldon Hearn2002-02-051-1/+1
| | | | | | | | | | | | | | signal handlers. In this case, use _exit(2) instead, following the call to shutdown(2). This fixes rare telnetd hangs. PR: misc/33672 Submitted by: Umesh Krishnaswamy <umesh@juniper.net> MFC after: 1 month Notes: svn path=/head/; revision=90242
* mdoc(7) police: remove -r from SYNOPSIS, sort -p in DESCRIPTION.Ruslan Ermilov2001-12-141-6/+5
| | | | Notes: svn path=/head/; revision=87882
* Don't assume that the number of fds to select on is known quantity (inJordan K. Hubbard2001-12-091-32/+56
| | | | | | | | | | | this case 16). Use dynamic FD_SETs and calculated high-water marks throughout. There are also too many versions of telnet in the tree. Obtained from: OpenBSD and Apple's Radar database MFC after: 2 days Notes: svn path=/head/; revision=87558
* Fixed bugs from previous revision.Ruslan Ermilov2001-12-041-1/+2
| | | | | | | Removed -s from SYNOPSIS and restored -S in DESCRIPTION. Notes: svn path=/head/; revision=87358
* Protect variables and function prototypes that are only used in the INET6John Hay2001-12-031-1/+7
| | | | | | | | | | | case with an ifdef INET6. This make the fixit floppy compile again. Reviewed by: markm Notes: svn path=/head/; revision=87277
* More help for alpha WARNS=2. This code is, erm, unusual. Anyone whoMark Murray2001-12-031-4/+4
| | | | | | | feels like rewriting it will meet no objection from me. Notes: svn path=/head/; revision=87267
* help the alphas out with the WARNS=2 stuff.Mark Murray2001-12-032-2/+2
| | | | Notes: svn path=/head/; revision=87266
* Damn. The previous mega-commit was incomplete WRT ANSIfication. ThisMark Murray2001-11-3013-281/+250
| | | | | | | fixes that. Notes: svn path=/head/; revision=87155
* Very large style makeover.Mark Murray2001-11-3045-5317/+2469
| | | | | | | | | | | | | | | | 1) ANSIfy. 2) Clean up ifdefs so that a) ones that never/always apply are appropriately either fully removed, or just the #if junk is removed. b) change #if defined(FOO) for appropiate values of FOO. (currently AUTHENTICATION and ENCRYPTION) 3) WARNS=2 fixing 4) GC other unused stuff This code can now be unifdef(1)ed to make non-crypto telnet. Notes: svn path=/head/; revision=87139
* Fix world by trimming an extra comment terminator.John Baldwin2001-10-291-1/+1
| | | | Notes: svn path=/head/; revision=85703
* Add Berkeley copyright to SRA.Nick Sayer2001-10-293-1/+91
| | | | | | | | | | | | | | | | | | | | | | | | | This is by the kind permission of Dave Safford, formerly of TAMU who wrote the original code. Here is an excerpt of the e-mail exchange concerning this issue: Dave Safford wrote: >Nick Sayer wrote: >> Some time ago we spoke about SRA and importing it into FreeBSD. I forgot to >> ask if you had a prefered license boilerplate for the top of the files. It >> has come up recently, and the SRA code in FreeBSD doesn't have one. >I really have no preference - use whatever is most convenient in the >FreeBSD environment. >dave safford This is the standard BSD license with clause 3 removed and clause 4 suitably renumbered. MFC after: 1 day Notes: svn path=/head/; revision=85690
* Diff-reduce these two.Mark Murray2001-10-271-3/+3
| | | | | | | | | | Really, one of them needs to disappear. I'll figure out which later. Reported by: bde Notes: svn path=/head/; revision=85600
* Add __FBSDID() to diff-reduce with "base" telnet.Mark Murray2001-10-0114-28/+40
| | | | Notes: svn path=/head/; revision=84305
* Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.Mark Murray2001-08-2911-936/+7
| | | | Notes: svn path=/head/; revision=82497
* Remove description of an option that only applies to UNICOS < 7.0.Dima Dorfman2001-08-251-13/+0
| | | | | | | | | | That define may still be present in the source, but I don't think anyone has plans to try to use it. Obtained from: NetBSD Notes: svn path=/head/; revision=82326
* Code merge and diff reduce with "base" telnet. This is the "later"Mark Murray2001-08-2025-290/+283
| | | | | | | | telnet, so it was treated as the reference code, except where later commits were made to "base" telnet. Notes: svn path=/head/; revision=81965
* Removal of following export controll related sentences:Kazuo Horikawa2001-08-151-10/+0
| | | | | | | | | | | | | | | | | | o Because of export controls, TELNET ENCRYPT option is not supported outside of the United States and Canada. o Because of export controls, data encryption is not supported outside of the United States and Canada. src/crypto/README revision 1.5 commit log says: > Crypto sources are no longer export controlled: > Explain, why crypto sources are still in crypto/. and actually telnet encryption is used outside of US and Canada now. Pointed out by: OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp> Reviewed by: no objection on doc Notes: svn path=/head/; revision=81665