Commit Graph

57 Commits

Author SHA1 Message Date
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 1f245ffbb2 more unifdef 2003-07-14 16:06:46 +00:00
itojun eb8120f761 more unifdef 2003-07-14 16:00:52 +00:00
itojun 21f5307c6f remove unneeded #ifdef. (confirmed that same *.o is generated) 2003-07-14 15:56:28 +00:00
itojun 7173f16649 use bounded copy ops 2003-07-12 14:29:35 +00:00
itojun 032ed69f9a strlcpy 2003-07-12 13:23:55 +00:00
christos 2658386875 Ansify. 2003-06-18 20:51:00 +00:00
jdolecek f906986ad4 one <sys/cdefs.h> include is enough
fixes PR misc/21340 by Igor Sobrado
2003-04-27 11:09:57 +00:00
kanaoka d4a4b29e36 - Support -4 and -6. Approved by itojun. 2002-08-23 08:14:20 +00:00
wiz 797d779cf1 De-register, de-__P. Remove #ifndef __STDC__ parts.
defines.h: Be more careful with braces in macro definitions.
2002-06-14 00:30:56 +00:00
sjg 5158e17b85 Make telnet escape work in tn3270
PR: 1816
2002-01-06 01:02:47 +00:00
itojun 955ffe2d0e just to be sure, set telnetport to 0.
From: Pekka Savola <pekkas@netcore.fi>
2001-09-03 07:51:43 +00:00
cgd d594ce939b comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
mjl 6c2663f7dd Fix possible buffer overruns. From OpenBSD, but without breaking stuff. 2001-01-03 12:41:00 +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
itojun 72a8fb4a4b add missing #ifdef INET6, to compile without -DINET6.
From: Mason Loring Bliss <mason@acheron.middleboro.ma.us>
2000-05-25 23:02:53 +00:00
blymn 7b14c86600 Convert telnet and top to the new termcap interface. This stops some
buffer overflows in top from ever happening.
2000-05-25 12:25:14 +00:00
itojun 643a3cfae1 recover old error message on unknown service ("telnet localhost foo"
when foo is not valid).  gai_strerror may be too generic.
fix suggested in openbsd camp.
2000-05-13 03:13:59 +00:00
itojun d74f882e9b sync comment for sourceroute() to reality 2000-02-29 19:36:43 +00:00
itojun e07bdd0262 use getnameinfo for "Trying ::1..." message, to enable printing of
IPv6 scopeid.
2000-02-05 17:44:11 +00:00
itojun a58fc4d3b8 sync with latest libipsec/kernel. 2000-01-31 14:25:42 +00:00
itojun 741f9b63b2 clarify reverse lookup and -N.
getaddrinfo(AI_CANONNAME) does not imply reverse lookup.
2000-01-27 19:20:49 +00:00
itojun 1e75e9ee55 remove setuid(getuid()). they are unnecessary as noone is going to
setuid telnet(1).

i'm not sure why it is here (maybe someone reused this code from
other setuid'ed program, or someone cut-and-pasted the code from
somewhere else?), it was from revision 1.1 (= 4.4BSD).

briefly discussed in: tech-net?
1999-12-13 04:52:20 +00:00
itojun 6ceceb260b clarify getaddrinfo() loop. try to contact all possible addresses
unless we experience fatal error.
XXX changed location of setuid(getuid()), may need someone's review.
1999-12-03 06:52:13 +00:00
itojun 4b402f1483 clarify reverse address lookup (-N). AI_NUMERICHOST is for forward lookup.
XXX RFC2553 does not say that AI_CANONNAME means reverse lookup.
we need to check if getaddrinfo(3) implementation is correct.
1999-12-03 06:34:24 +00:00
soren 30d18a154c Remove extraneous colons and newlines from perror(3) arguments. 1999-09-30 12:35:52 +00:00
abs 8714299f16 Add -N option (numeric host address) - idea taken from FreeBSD.
Fix bug where -E8 would still pick up 0xFF as escape (again from FreeBSD)
1999-07-28 06:35:15 +00:00
jtk be9d0297fd fix handling of port number preceded by minus sign to restore documented behavior 1999-07-21 13:24:56 +00:00
itojun 6ae77d03dc clarify socket-connect trial loop. fix freeaddrinfo().
adjust indentation (commands.c uses sw=4 ts=8).
1999-07-14 20:47:41 +00:00
thorpej 7550139fd7 Whitespace cleanup. 1999-07-12 22:10:52 +00:00
itojun e1b3627397 bark if mismatched address families are found on source route. 1999-07-02 15:11:53 +00:00
itojun 9bee021415 IPv6-ready telnet.
source route (telnet @localhost@localhost) works for IPv6 as well.
1999-07-02 15:09:10 +00:00
christos 81c93f4c32 - synchronize with the domestic version
- setupterm -> setup_term
- char -> unsigned char
1998-11-06 19:54:18 +00:00
mycroft a405bce56c const poisoning. 1998-07-26 22:26:29 +00:00
msaitoh 4944940fcf Declare ints, too, don't default them. 1998-07-09 18:32:52 +00:00
fvdl d310ce0d42 Fix pasto in previous. 1998-07-07 13:20:12 +00:00
mrg 32f519716b - 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:56:06 +00:00
mrg c0391a5b14 use static int instead of static 1998-03-30 02:30:08 +00:00
thorpej e0008f3a90 Avoid GCC warning on m68k. 1998-03-05 08:10:06 +00:00
christos 346d9496c8 Adjust for tn3270 cleanup. 1998-03-04 13:51:57 +00:00
thorpej 292d795f97 Add a cast to make the compiler happy on the Alpha. 1998-03-03 07:32:46 +00:00
enami ff4977ead8 Fix compile error of tn3270/tn3270; getpgrp() takes no argument. 1998-02-28 12:36:20 +00:00
christos 434ea11b22 WARNSify and fix problems passing int * -> long * 1998-02-27 10:44:12 +00:00
jtk d03349ad69 sync up with domestic fixes 1996-03-24 22:03:48 +00:00
thorpej 077a490a9f RCS id cosmetics. 1996-02-28 21:03:49 +00:00
jtk 0058997e19 restore last of the lost local changes. 1996-02-24 18:43:37 +00:00
jtk 07f5d8ea64 replace another lost change: "help" is a valid hostname. 1996-02-24 18:33:50 +00:00
jtk 583a8146a9 update to 95.10.23 version of telnet
also, RCS ID police
1996-02-24 01:18:25 +00:00
tls 5a03ea3e48 contrary to unpopular opinion, 'help' is a perfectly valid hostname. 1996-01-05 04:19:30 +00:00
hpeyerl e9b66f9184 Squish #581. 1995-01-03 06:24:48 +00:00