aboutsummaryrefslogtreecommitdiff
path: root/contrib/telnet
Commit message (Collapse)AuthorAgeFilesLines
...
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-3/+6
| | | | Notes: svn path=/head/; revision=81622
* output_data(), output_datalen() and netflush() didn't actually guaranteeKris Kennaway2001-07-236-45/+50
| | | | | | | | | | | | | | | | to do what they are supposed to: under some circumstances output data would be truncated, or the buffer would not actually be flushed (possibly leading to overflows when the caller assumes the operation succeeded). Change the semantics so that these functions ensure they complete the operation before returning. Comment out diagnostic code enabled by '-D reports' which causes an infinite recursion and an eventual crash. Patch developed with assistance from ru and assar. Notes: svn path=/head/; revision=80224
* More potential buffer overflow fixes.Ruslan Ermilov2001-07-204-35/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Fixed `nfrontp' calculations in output_data(). If `remaining' is initially zero, it was possible for `nfrontp' to be decremented. Noticed by: dillon o Replaced leaking writenet() with output_datalen(): : * writenet : * : * Just a handy little function to write a bit of raw data to the net. : * It will force a transmit of the buffer if necessary : * : * arguments : * ptr - A pointer to a character string to write : * len - How many bytes to write : */ : void : writenet(ptr, len) : register unsigned char *ptr; : register int len; : { : /* flush buffer if no room for new data) */ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : if ((&netobuf[BUFSIZ] - nfrontp) < len) { : /* if this fails, don't worry, buffer is a little big */ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ : netflush(); : } : : memmove(nfrontp, ptr, len); : nfrontp += len; : : } /* end of writenet */ What an irony! :-) o Optimized output_datalen() a bit. Notes: svn path=/head/; revision=80038
* vsnprintf() can return a value larger than the buffer size.Ruslan Ermilov2001-07-191-1/+1
| | | | | | | | Submitted by: assar Obtained from: OpenBSD Notes: svn path=/head/; revision=79992
* Fixed the exploitable remote buffer overflow.Ruslan Ermilov2001-07-196-314/+219
| | | | | | | | | Reported on: bugtraq Obtained from: Heimdal, NetBSD Reviewed by: obrien, imp Notes: svn path=/head/; revision=79981
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-102-3/+2
| | | | Notes: svn path=/head/; revision=79528
* mdoc(7) police: merge all fixes from non-crypto version.Ruslan Ermilov2001-07-051-58/+92
| | | | Notes: svn path=/head/; revision=79324
* MF non-crypto: 1.13: document -u in usage.Ruslan Ermilov2001-07-051-8/+8
| | | | Notes: svn path=/head/; revision=79323
* Oops, forgot the 'u' in the getopt for the previous commit.Matthew Dillon2001-05-241-1/+1
| | | | Notes: svn path=/head/; revision=77105
* A feature to allow one to telnet to a unix domain socket. (MFC fromMatthew Dillon2001-05-233-3/+51
| | | | | | | | | | | | non-crypto version) Also update the crypto telnet's man page to reflect other options ported from the non-crypto version. Obtained from: Lyndon Nerenberg <lyndon@orthanc.ab.ca> Notes: svn path=/head/; revision=77095
* Make the PAM user-override actually override the correect thing.Nick Sayer2001-05-171-3/+3
| | | | Notes: svn path=/head/; revision=76751
* Back out last commit. This was already fixed. This should never havePeter Wemm2001-05-171-2/+0
| | | | | | | | happened, this is why we have commit mail expressly delivered to committers. Notes: svn path=/head/; revision=76712
* Fix the latest telnet breakage. Obviously this was never compiled.Peter Wemm2001-05-171-4/+4
| | | | Notes: svn path=/head/; revision=76711
* Since the root-on-insecure-tty code was added to telnetd, a dependencyNick Sayer2001-05-161-0/+2
| | | | | | | | on char *line was added to libtelnet. Put a dummy one in to keep the linker happy. Notes: svn path=/head/; revision=76697
* Make sure the protocol actively rejects bad data rather thanNick Sayer2001-05-161-8/+8
| | | | | | | (potentially) not responding to an invalid SRA 'auth is' message. Notes: svn path=/head/; revision=76696
* srandomdev() affords us the opportunity to radically improve, and at theNick Sayer2001-05-161-0/+7
| | | | | | | same time simplify, the random number selection code. Notes: svn path=/head/; revision=76691
* Catch any attempted buffer overflows. The magic numbers in this codeNick Sayer2001-05-161-2/+6
| | | | | | | | | | (512) are a little distressing, but the method really needs to be extended to allow server-supplied DH parameters anyway. Submitted by: kris Notes: svn path=/head/; revision=76690
* Catch malloc return failures. This should help avoid dereferencing NULL onNick Sayer2001-05-161-0/+8
| | | | | | | | | low-memory situations. Submitted by: kris Notes: svn path=/head/; revision=76689
* Hack to work around braindeath in libtelnet:sra.c. The sra.o filePeter Wemm2001-05-151-0/+1
| | | | | | | | | | references global variables from telnetd, but is also linked into telnet as well. I was tempted to back out the last sra.c change as it is 100% bogus and should be taken out and shot, but for now this bandaid should get world working again. :-( Notes: svn path=/head/; revision=76616
* If the uid of the attempted authentication is 0 and if the pty isNick Sayer2001-05-151-1/+34
| | | | | | | | insecure, do not succeed. Copied from login.c. This functionality really should be a PAM module. Notes: svn path=/head/; revision=76610
* Pointy hat fix -- reapply the SRA PAM patch. To -current this time.Nick Sayer2001-05-071-0/+133
| | | | Notes: svn path=/head/; revision=76339
* mdoc(7) police: removed hard sentence breaks introduced in rev.1.10.Ruslan Ermilov2001-04-131-4/+5
| | | | Notes: svn path=/head/; revision=75465
* Clean up telnet's argument processing a bit. autologin and encryption isNick Sayer2001-04-062-34/+23
| | | | | | | | | | now the default, so ignore the arguments that turn it on. Add a new -y argument to turn off encryption in case someone wants to do that. Sync these changes with the man page (including removing the now obsolete statement about availability only in the US and Canada). Notes: svn path=/head/; revision=75263
* Reactivate SRA.Nick Sayer2001-04-051-0/+18
| | | | | | | | Make handling of SIGINT and SIGQUIT follow SIGTSTP in TerminalNewMode(). This allows people to break out of SRA authentication if they wish to. Notes: svn path=/head/; revision=75236
* Fix core noted in -stable with 'auth disable SRA'.Nick Sayer2001-03-181-2/+2
| | | | | | | | I just mistakenly commited this to RELENG_4. I have contacted Jordan to see about how to fix this. Pass the pointy hat. Notes: svn path=/head/; revision=74411
* enable auto-negotiation of encrypt and decryptAssar Westerlund2001-03-121-0/+13
| | | | Notes: svn path=/head/; revision=74138
* Synch: Add $FreeBSD$.Jeroen Ruigrok van der Werven2001-02-071-0/+1
| | | | Notes: svn path=/head/; revision=72139
* Fix typo: compatability -> compatibility.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | Compatability is not an existing english word. Notes: svn path=/head/; revision=72093
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-062-2/+2
| | | | | | | | | Seperate does not exist in the english language. Submitted to look at by: kris Notes: svn path=/head/; revision=72089
* Fix typo: wierd -> weird.Jeroen Ruigrok van der Werven2001-02-062-2/+2
| | | | | | | There is no such thing as wierd in the english language. Notes: svn path=/head/; revision=72083
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-012-36/+38
| | | | Notes: svn path=/head/; revision=71899
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-102-5/+11
| | | | Notes: svn path=/head/; revision=70890
* (scrub_env): change to only accept a listed set of variables,Assar Westerlund2000-12-101-23/+37
| | | | | | | including only non-filename contents for TERMCAP Notes: svn path=/head/; revision=69825
* Add more environment variables to be filtered through scrub_env().Jeroen Ruigrok van der Werven2000-11-301-0/+7
| | | | | | | Synched from normal telnet. Notes: svn path=/head/; revision=69389
* String paranoia fix. Synched from normal telnet.Jeroen Ruigrok van der Werven2000-11-301-2/+2
| | | | Notes: svn path=/head/; revision=69387
* String paranoia. Merged from regular telnet.Jeroen Ruigrok van der Werven2000-11-301-2/+2
| | | | Notes: svn path=/head/; revision=69384
* Correct definition of MAXHOSTNAMELEN in ifdef'ed code.Kris Kennaway2000-11-262-2/+2
| | | | | | | | Submitted by: Edwin Groothuis <mavetju@chello.nl> PR: bin/22787 Notes: svn path=/head/; revision=69223
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-202-42/+42
| | | | Notes: svn path=/head/; revision=68965
* Fix a buffer overflow from a long local hostname.Kris Kennaway2000-11-191-2/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=68891
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-102-9/+1
| | | | Notes: svn path=/head/; revision=68575
* Sync with usr.bin/telnet/telnet.c r1.9 - fix buffer overflow in DISPLAYKris Kennaway2000-10-291-4/+7
| | | | Notes: svn path=/head/; revision=67827
* Fix buffer size of ALIGNed buffer.Hajimu UMEMOTO2000-07-201-2/+2
| | | | | | | | PR: bin/20053 Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su> Notes: svn path=/head/; revision=63662
* Add missing $FreeBSD$ to files that are NOT still on vendor a branch.Peter Wemm2000-07-1619-0/+72
| | | | Notes: svn path=/head/; revision=63248
* Fix 'telnet -X sra' coredumpNick Sayer2000-07-111-1/+3
| | | | | | | PR# 19835 Notes: svn path=/head/; revision=62958
* Don't call printf with no format string.Kris Kennaway2000-07-101-1/+5
| | | | Notes: svn path=/head/; revision=62868
* Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATAHajimu UMEMOTO2000-07-081-2/+2
| | | | | | | change (getaddrinfo.c rev 1.12). Notes: svn path=/head/; revision=62805
* sync with usr.bin/telnet/commands.c 1.21 -> 1.22. pierre.dampure@alveley.orgJun-ichiro itojun Hagino2000-07-071-18/+16
| | | | Notes: svn path=/head/; revision=62773
* CMSG_XXX macros alignment fixes to follow RFC2292.Yoshinobu Inoue2000-03-031-14/+12
| | | | | | | Approved by: jkh Notes: svn path=/head/; revision=57724
* Get crypto from libcrypto, not libdes.Mark Murray2000-02-245-5/+13
| | | | Notes: svn path=/head/; revision=57442
* Freefall/Internat diff reducer.Mark Murray2000-02-241-1/+1
| | | | Notes: svn path=/head/; revision=57414