aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/keyserv
Commit message (Collapse)AuthorAgeFilesLines
* Remove spurious semicolons. Outside of functions they are actually errors butStefan Farfeleder2004-05-161-1/+1
| | | | | | | | | | | GCC doesn't warn about them without -pedantic. Approved by: das (mentor) PR: 56649 Reviewed by: md5 Notes: svn path=/head/; revision=129302
* Put chkey(1), newkey(8), and keyserv(8) into the crypto distribution.Ruslan Ermilov2004-01-181-0/+1
| | | | Notes: svn path=/head/; revision=124664
* Use arc4random() instead of random() when generating the master key.Kris Kennaway2003-02-181-2/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=111062
* Use sranddev()/srandomdev() for FreeBSDAndrey A. Chernov2003-02-111-2/+10
| | | | Notes: svn path=/head/; revision=110665
* Initiate deorbit burn for the i386-only a.out related support. Moves arePeter Wemm2002-09-172-32/+0
| | | | | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha Notes: svn path=/head/; revision=103436
* mdoc(7) police: Removed redundant .Ns calls.Ruslan Ermilov2002-08-131-2/+2
| | | | Notes: svn path=/head/; revision=101828
* Port to TI/RPC and/or IPV6.Alfred Perlstein2002-07-151-3/+3
| | | | | | | Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr> Notes: svn path=/head/; revision=100120
* The .Nm utilityPhilippe Charnier2002-07-141-6/+8
| | | | Notes: svn path=/head/; revision=99968
* Use libcrypto.so.2 instead of .1, since we have it now. It should enableJuli Mallett2002-07-091-3/+3
| | | | | | | | | | | DES for keyserv again. Submitted by: mbr Kill a stray __P while I'm here. Notes: svn path=/head/; revision=99693
* Spell void * as void * rather than caddr_t. This is complicated by theDag-Erling Smørgrav2002-04-281-24/+24
| | | | | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=95658
* Readded the svc_create() and the registering of the local transport,Alfred Perlstein2002-02-061-1/+35
| | | | | | | | | | | | | | | | | | now it is fixed. This should get us a working keyserv again, since it depends on local transport for key exchange. Since we do not have any KEYFILE name hardcoded anymore, set the umask that way that the keyserver socket can be created with with the appropriate permissions. Re-add the accidently removed signal(SIGPIPE, SIG_IGN); to the code which makes sense to avoid SIGPIPE when a disconnect on rpc socket occurs. Submitted by: mbr Notes: svn path=/head/; revision=90317
* Fixed bitrot in DPADD in previous commit.Bruce Evans2001-07-301-1/+1
| | | | Notes: svn path=/head/; revision=80629
* Enable the new libmp in the build, and disable libgmp and itsDima Dorfman2001-07-291-1/+1
| | | | | | | henchmen. Notes: svn path=/head/; revision=80530
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-2/+1
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Remove whitespace at EOL.Dima Dorfman2001-07-151-5/+5
| | | | Notes: svn path=/head/; revision=79755
* Nuke unused variables.Dima Dorfman2001-06-242-6/+0
| | | | Notes: svn path=/head/; revision=78737
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+2
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Hopefully fix some of the bugs in passing credentials over UNIX ↵Alfred Perlstein2001-03-224-80/+5
| | | | | | | | | | | | | | | domain sockets. Make struct cmessage visible from socket.h (about 4 places were defining it for themselves which wasn't good) Make __rpc_get_local_uid() useable and give it prototype that's visible. Fix some issues with printing out usernames from rpcbind and keyserv. Notes: svn path=/head/; revision=74627
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-2/+0
| | | | Notes: svn path=/head/; revision=74532
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-191-36/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul Notes: svn path=/head/; revision=74462
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71898
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-3/+3
| | | | Notes: svn path=/head/; revision=68965
* Use libcrypto instead of libdes.Mark Murray2000-02-241-6/+6
| | | | Notes: svn path=/head/; revision=57451
* $Id$ -> $FreeBSD$Peter Wemm1999-08-286-6/+6
| | | | Notes: svn path=/head/; revision=50479
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48791
* Remove irrelevant section.Joseph Koshy1998-10-131-2/+0
| | | | | | | | PR: 8286 Submitted-by: yohta@bres.tsukuba.ac.jp Notes: svn path=/head/; revision=40284
* Apply patch from Stefan Esser to close PR #7941: add code to handleBill Paul1998-09-162-2/+17
| | | | | | | | dynamic loading of libdes on ELF systems. The patch looks correct to me. Notes: svn path=/head/; revision=39319
* Fixed the usual dependency bugs. This Makefile accidentally usuallyBruce Evans1998-05-091-3/+3
| | | | | | | worked for `make -j9', but failed for `make -j4'. Notes: svn path=/head/; revision=35894
* Fixed DPADD.Bruce Evans1997-12-161-2/+3
| | | | Notes: svn path=/head/; revision=31779
* Use err(3). Put includes in alphabetical order.Philippe Charnier1997-09-235-132/+113
| | | | | | | | Rewrote man page in mdoc format. Document -v and -p flags. Notes: svn path=/head/; revision=29735
* Correct the section number in the cross-reference for the publickeyJohn Polstra1997-06-171-1/+1
| | | | | | | file. Notes: svn path=/head/; revision=26704
* Work around a bug (deficiency?) in the libdes Secure RPC compat interface.Bill Paul1997-06-171-24/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | The way Secure RPC is set up, the ecb_crypt() routine is expected to be able to encrypt a buffer of any size up to 8192 bytes. However, the des_ecb_encrypt() routine in libdes only encrypts 8 bytes (64 bits) at a time. The rpc_enc.c module should compensate for this by calling des_ecb_encrypt() repeatedly until it has encrypted the entire supplied buffer, but it does not do this. As a workaround, keyserv now handles this itself: if we're using DES encryption, and the caller requested ECB mode, keyserv will do the right thing. Also changed all references to 'rc4' into 'arcfour' just in case some litigious bastard from RSA is watching. Note that I discovered and fixed this problem while trying to get a part of NIS+ working: rpc.nisd signs directory objects with a 16-byte MD5 digest that is encrypted with ecb_crypt(). Previously, only the first 8 bytes of the digest were being properly encrypted, which caused the Sun nis_cachemgr to reject the signatures as invalid. I failed to notice this before since Secure RPC usually never has to encrypt more than 8 bytes of data during normal operations. Notes: svn path=/head/; revision=26703
* Import of the keyserv daemon needed for Secure RPC.Bill Paul1997-05-287-0/+1833
This version supports both the keyserv v1 and v2 protocols. It uses the new AF_LOCAL transport so that only local processes can use it for storing/retrieving keys, and it uses the SCM_CREDS kernel hack for authentication. With these two modifications, we don't need the keyenvoy program normally used with RPC 4.0. Note that if libdes.so.3.x is present on the system when keyserv is started, Secure RPC will run with normal DES encryption. If not, everything falls back to RC4 with a 40 bit key. Notes: svn path=/cvs2svn/branches/WPAUL/dist/; revision=26234