Commit Graph

31 Commits

Author SHA1 Message Date
Mark Murray
d8456c7ada Dekerberise. The corresponding userland stuff has been dekerberised
for ages, and no-one seems to have noticed. Viva PAM!
2002-10-16 16:10:46 +00:00
Jacques Vidrine
75bed0534a Check for FD_SET overrun. 2002-09-09 16:14:03 +00:00
Ian Dowse
35655e3c45 If a timeout is specified, make sure that rcmd() completes within
the specified time. Previously, rsh could potentially hang indefinitely
at this point even when a timeout was set, for example if the server
accepts the connection and then never sends any reply.

PR:		bin/20042
Submitted by:	Keith White <Keith.White@site.uottawa.ca>
MFC after:	1 week
2002-08-13 16:25:38 +00:00
Dag-Erling Smørgrav
99b82bb76a Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits.
Sponsored by:	DARPA, NAI Labs
2002-05-08 00:47:01 +00:00
David E. O'Brien
9c94900122 Const what I could on a first pass. 2002-03-30 08:51:21 +00:00
Mark Murray
ed86ca364b Very simple fixes; WARNS and ANSIfy. Remove GCC-specific options from
Makefile.
2002-03-23 15:43:11 +00:00
Warner Losh
d3cb5ded92 remove __P 2002-03-22 01:33:25 +00:00
Sheldon Hearn
e1b4d8d074 Use STD{ERR,IN,OUT}_FILENO instead of their numeric values. The
definitions are more readable, and it's possible that they're
more portable to pathalogical platforms.

Submitted by:   David Hill <david@phobia.ms>
2001-07-26 11:02:39 +00:00
Joseph Koshy
b67f439c91 [rsh.1] Document the -4' and -6' options.
[rsh.c] Make usage message match the code.
2000-11-24 09:25:44 +00:00
Brian S. Dean
599c73a35f Fix a bug in rsh that caused the remote process to hang waiting on
input even if the '-n' flag to rsh is used.  The write side of the
socket should be closed to allow the remote process to see EOF.

Submitted by:  Brad Chisholm <sasblc@unx.sas.com>
2000-04-01 00:14:50 +00:00
Mark Murray
0ed9356caf Use libcrypto in place of libdes. 2000-02-24 21:06:22 +00:00
Yoshinobu Inoue
1132b408c5 Add -4 and -6 options.
Current getaddrinfo() implemetation has a problem of too much resolving
 waiting time on INET6 enabled systems.
 -4 and -6 options can limit name resolving address family and is a possible
 workaround for the problem.

Approved by: jkh
2000-02-15 15:11:40 +00:00
Yoshinobu Inoue
0cac72f42c several tcp apps IPv6 update
-inetd
 -rshd
 -rlogind
 -telnetd
 -rsh
 -rlogin

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
2000-01-25 14:52:10 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Dag-Erling Smørgrav
f89801f3c3 Don't use an arbitrary hardcoded value for nfds in select() calls.
PR:		bin/9986
1999-02-10 18:08:51 +00:00
Mark Murray
3e8af2321b Use KJH's auth.conf parser to turn on/off Kerberos in userland. 1998-10-09 06:47:57 +00:00
Philippe Charnier
3508975f96 Add const to rcsid. 1998-03-23 07:46:23 +00:00
John Birrell
b212561dcb Initialise variable that gcc lies awake at night worrying about. 1998-02-20 04:50:50 +00:00
Mark Murray
7f80a02080 Changes for KTH KerberosIV.
Also quieten -Wall a bit.
1997-09-28 08:57:24 +00:00
Philippe Charnier
ed43a0f914 Use err(3) instead of local definition.
Cosmetic in man page: do not start describing a flag with `The option -X ..'.
1997-08-07 06:46:45 +00:00
Warner Losh
1c8af87873 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
Peter Wemm
c115df18cd Revert $FreeBSD$ to $Id$ 1997-02-22 19:58:13 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Jordan K. Hubbard
619c58eea0 Add a timeout flag so that failing operations can at least be caught
and flagged.  Closes PR#1513
Submitted-By: David Muir Sharnoff <muir@idiom.com>
1996-09-06 05:24:05 +00:00
Mark Murray
bbff7ca556 #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
Mark Murray
d523df8926 Rename des_set_key -> des_set_key. (libdes conflict) 1996-02-03 11:49:29 +00:00
Justin T. Gibbs
f4390542d7 Kerberos can now deal with multi-homed clients.
Kerberos obtains a network address for the local host from the routing
tables and uses it consistently for all Kerberos transactions.  This ensures
that packets only leave the *authenticated* interface.  Clients who open
and use their own sockets for encrypted or authenticated correspondance
to kerberos services should bind their sockets to the same address as that
used by kerberos.  krb_get_local_addr() and krb_bind_local_addr() allow
clients to obtain the local address or bind a socket to the local address
used by Kerberos respectively.

Reviewed by: Mark Murray <markm>, Garrett Wollman <wollman>
Obtained from: concept by Dieter Dworkin Muller <dworkin@village.org>
1995-10-05 21:30:21 +00:00
Rodney W. Grimes
7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Garrett Wollman
cde665121e Fix Sharnoff complain bin/136 (-e flag doesn't work). 1995-01-14 20:36:22 +00:00
Doug Rabson
ab1698b3e9 Move the call to des_set_key to after the kerberos initialisation, removing
assumption about the implementation of des_read/des_write.
1994-09-26 09:22:08 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00