OpenBSD CVS

CVS log for src/usr.bin/telnet/telnet.c


[BACK] Up to [local] / src / usr.bin / telnet

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.37 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:51 2024 UTC (3 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

correct indentation; no functional change
ok tb@

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jul 11 03:54:27 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

on 12-Mar-98 when art replaced two sprintf calls with snprintf to avoid
an overflow, he left spaces at the end of the line.  we have been incredibly
sloppy and not notice his oversight for 21 years.
bonus Y2K joke included.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 26 18:35:01 2016 UTC (8 years, 3 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

typos

Revision 1.34 / (download) - annotate - [select for diffs], Wed Dec 23 13:08:24 2015 UTC (8 years, 4 months ago) by sthen
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Add rpath to telnet's more restrictive pledge; otherwise if the server requests
the client to send the next terminal-type (RFC-1091), the client tries to read
terminfo files and is killed by pledge. Noticed when connecting to 4.3 BSD.
ok semarie@ tb@

Revision 1.33 / (download) - annotate - [select for diffs], Tue Nov 24 05:06:24 2015 UTC (8 years, 5 months ago) by beck
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

Don't support repeated connections - avoids pledge problems
ok deraadt@, "god please commit before I see any more" tedu@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Nov 13 17:13:59 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.31: +7 -1 lines
Diff to previous 1.31 (colored)

pledge "stdio rpath wpath getpw inet tty" at startup.   After opening
the socket and entering the main loop, pledge "stdio tty".

For my next trick, I will be adding chacha20-poly1305 support.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Nov 13 17:01:12 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.30: +1 -2 lines
Diff to previous 1.30 (colored)

Remove support for the debug command; noone needs setsockopt SO_DEBUG

Revision 1.30 / (download) - annotate - [select for diffs], Tue Sep 9 03:41:08 2014 UTC (9 years, 8 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.29: +22 -22 lines
Diff to previous 1.29 (colored)

Eliminate a pile of casts that were superfluous or wrong, or that were
the result of bad type choices, particularly (unsigned char *) vs
(const char *).  Also, use reallocarray().

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jul 22 07:30:24 2014 UTC (9 years, 9 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.28: +103 -139 lines
Diff to previous 1.28 (colored)

use ansi style function declarations
with suggestions from and ok guenther@

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 20 10:55:26 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.27: +36 -19 lines
Diff to previous 1.27 (colored)

Mark a slurry of functions as static
Eliminate two more trivial wrappers

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jul 20 10:32:23 2014 UTC (9 years, 10 months ago) by jsg
Branch: MAIN
Changes since 1.26: +11 -11 lines
Diff to previous 1.26 (colored)

use NULL instead of 0 when dealing with pointers
ok guenther@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jul 20 10:18:10 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored)

Kill lint comments; mark ExitString() as __dead

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jul 20 08:56:47 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)

Add prototypes to some function callbacks and fix the type errors that
this reveals.
Make NetTrace static to utilities.c

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jul 20 08:12:46 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.23: +4 -1 lines
Diff to previous 1.23 (colored)

More encryption tentacles: intr_happened and intr_waiting vanish
Push more includes into .c files
Make ring.c only need ring.h

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 20 06:39:41 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.22: +5 -3 lines
Diff to previous 1.22 (colored)

Correctly cast to unsigned char for ctype functions/macros
Push <ctype.h> and <unistd.h> into the .c files

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 20 03:00:31 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +1 -2 lines
Diff to previous 1.21 (colored)

remove a variable called wantencryption.
hahahahahahahahahha.  OK, I'm done.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jul 19 23:50:38 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.20: +3 -462 lines
Diff to previous 1.20 (colored)

Flense the telnet code base of unwanted ifdefs: authentication/encryption
tn3270, sgtty, pre-POSIX and other ancient system support, etc.  Brings up
to date the manpage with what we support.

ok matthieu@ beck@ jmc@ millert@ deraadt@ okan@

Revision 1.20 / (download) - annotate - [select for diffs], Tue Apr 28 06:46:03 2009 UTC (15 years ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.19: +6 -10 lines
Diff to previous 1.19 (colored)

replacing malloc/realloc dance, by only one realloc

While there, also move a variable declaration, in the #ifdef block it is
used

ok gilles@ millert@

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Tue Mar 29 20:20:10 2005 UTC (19 years, 1 month ago) by brad
Branch: OPENBSD_3_5
Changes since 1.18: +74 -47 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

MFC:
Fix by otto@

- only send exported vars (based on a diff from Solar Designer)
- fix some buffer overflows (also some Solar Designer input)

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Tue Mar 29 19:49:10 2005 UTC (19 years, 1 month ago) by brad
Branch: OPENBSD_3_6
Changes since 1.18: +74 -47 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

MFC:
Fix by otto@

- only send exported vars (based on a diff from Solar Designer)
- fix some buffer overflows (also some Solar Designer input)

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 27 15:46:42 2005 UTC (19 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.18: +74 -47 lines
Diff to previous 1.18 (colored)

- only send exported vars (based on a diff from Solar Designer)
- fix some buffer overflows (also some Solar Designer input)

ok deraadt@ cloder@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 8 19:17:29 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_5_BASE
Branch point for: OPENBSD_3_6, OPENBSD_3_5
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

typos from Jonathon Gray;

Revision 1.17 / (download) - annotate - [select for diffs], Sat Oct 4 10:18:05 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

negotation -> negotiation;
from Marc Balmer

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:18 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.15: +2 -6 lines
Diff to previous 1.15 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Mar 22 13:49:28 2002 UTC (22 years, 2 months ago) by hin
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.14: +73 -1 lines
Diff to previous 1.14 (colored)

Telnet encryption warning messages, taken from kth-krb4-1.1.1.

(krb4-1.1.1 will be imported after release)

Noone bothered to look at this, but I've used this for a couple of weeks,
and i really want this to go in before release.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 17 17:20:49 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

telnet used a P macro instead of __P -- g/c that too.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:16 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.12: +36 -36 lines
Diff to previous 1.12 (colored)

kill more registers

millert@ ok

Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 3 00:07:53 2001 UTC (22 years, 6 months ago) by hin
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Telnet client shouldn't say it does Kerberos unless there actually exists
a krb4 or krb5 ticket file.
ok art@

Revision 1.11 / (download) - annotate - [select for diffs], Fri Nov 10 15:33:13 2000 UTC (23 years, 6 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

seperate -> separate, okay aaron@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 24 21:52:38 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

When calling setupterm() pass in an int* for the error code so
it doesn't spew to stderr if the terminal type can't be found.

Fix a logic thinko wrt terminaltypeok() -- it should return 0 on failure,
not success.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 10 15:41:11 2000 UTC (23 years, 7 months ago) by millert
Branch: MAIN
Changes since 1.8: +9 -28 lines
Diff to previous 1.8 (colored)

Use curses, not ocurses and thus setupterm() not tgetent().  This means
we no longer need to have a faked up telnet_setupterm().

Remove some unused variables and add missing err.h include in sys_bsd.c

Revision 1.8 / (download) - annotate - [select for diffs], Thu Dec 30 16:58:22 1999 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.7: +15 -6 lines
Diff to previous 1.7 (colored)

avoid memory leak on realloc() failure.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 23 15:04:48 1999 UTC (24 years, 10 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Fix the case where telnet(1) would escape if in binary (-8) mode, even if the
-E option (stop all characters from being recognized as an escape character)
was specified, if it was passed a 0xFF character; from FreeBSD, millert@ ok

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jul 27 15:29:29 1998 UTC (25 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

don't include term.h

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 15 03:16:43 1998 UTC (26 years ago) by art
Branch: MAIN
Changes since 1.4: +5 -2 lines
Diff to previous 1.4 (colored)

cleanup warnings.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Mar 12 04:57:43 1998 UTC (26 years, 2 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.3: +125 -124 lines
Diff to previous 1.3 (colored)

encryption support from kth-krb 0.9.8 (kerberos only)
plus some tweaks for better binary/8-bit support.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jun 5 01:07:39 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

do not interpret _POSIX_VDISABLE as a special character; netbsd

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 27 19:33:10 1996 UTC (28 years, 1 month ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +18 -11 lines
Diff to previous 1.1 (colored)

From NetBSD: merge of 960317

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:15 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:15 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.