Commit Graph

113 Commits

Author SHA1 Message Date
wiz
3bd3ab5387 Change _putchar definition to match curses.h's expectations, and
remove some __ left over from de-P()'ing (mmm, inconsistency).
Noted by Juergen Hannken-Illjes.
2002-06-14 09:55:08 +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
thorpej
9c33b55e7c Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
2002-03-22 18:10:19 +00:00
wiz
89f6005c6b s/infinate/infinite/ 2002-02-11 11:00:07 +00:00
wiz
573e59fb5c Lots of typos. 2002-02-11 00:57:58 +00:00
ross
2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
sjg
5158e17b85 Make telnet escape work in tn3270
PR: 1816
2002-01-06 01:02:47 +00:00
wiz
b63535f440 Punctuation nit, drop a .Pp. 2001-12-08 19:18:03 +00:00
abs
d20d0f15fa s/If a port is specified on the command line/If a port is specified/
for the 'omits any automatic initialisation of TELNET' sentence
2001-12-03 13:29:10 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
kleink
c4c0037332 Improve previous' markup usage a bit. 2001-11-30 18:25:58 +00:00
kleink
cc81a9e326 Document the .telnetrc DEFAULT machine entry. 2001-11-30 18:15:24 +00:00
abs
74a411793d Clarify when automatic initialisation of TELNET options occurs.
Reported by John Heasley.
2001-11-28 20:31:36 +00:00
wiz
4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +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
wiz
c52d355d71 "wierd" is weird. 2001-08-20 12:20:01 +00:00
wiz
a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
wiz
ccfe29f3cf Symmetric has one s and two m's. 2001-06-18 11:23:00 +00:00
wiz
40ac848024 Fix various misspellings of compatible/compatibility. 2001-06-11 01:50:48 +00:00
wiz
64044113aa Whitespace and punctuation fixes. 2001-04-04 09:47:13 +00:00
assar
93963c8db2 fix spelling of cpp symbol (ENCRYPT vs ENCRYPTION).
enable encryption with autologin.
fixes PR 12226
2001-03-04 01:51:05 +00:00
cgd
d594ce939b comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
itojun
78c2b5a427 make usr.bin/tn3270 buildable. make sizeof(tline) usable. 2001-01-04 05:58:41 +00:00
mjl
6c2663f7dd Fix possible buffer overruns. From OpenBSD, but without breaking stuff. 2001-01-03 12:41:00 +00:00
lukem
279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
assar
4bb88e6fb1 forced: previous was really: remove libvers, it's not being used 2000-08-03 22:58:32 +00:00
assar
fc90224f06 link against the not-installed libvers 2000-08-03 22:47:37 +00:00
assar
549a4d9cdc update build infrastructure for heimdal 0.3a 2000-08-03 04:02:29 +00:00
thorpej
df83a2a3cd Add MK... variables to enable/disable various aspects of building
crypto support into the system.  See share/mk/bsd.README for more
a full description.
2000-06-23 06:01:10 +00:00
thorpej
d12f4d05fa Fix unused variable warning in the non-ENCRYPTION case (e.g. when
built at tn3270(1)).
2000-06-22 07:11:11 +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
thorpej
e7d6b96938 Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so.  Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
2000-06-20 06:00:24 +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
assar
0bb524cb22 (net_write): update prototype 2000-02-01 02:28:23 +00:00
assar
a5499ad4dc (net_write): rename to telnet_net_write 2000-02-01 02:26:57 +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
mycroft
f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
itojun
e8834c8cd2 avoid memory leak on realloc() failure. 1999-12-30 09:52:03 +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
msaitoh
44181778bd fix following sequence:
telnet localhost
	cat (no argument)
	control-C
	(not returned to the shell prompt)
	(push enter key)
	(returned to prompt)
1999-11-26 07:33:52 +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