diff options
author | markm <markm@FreeBSD.org> | 2001-12-02 12:17:20 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-12-02 12:17:20 +0000 |
commit | 8e33fb69fc45f4bb7cc91a88fc201e074c9eeaf9 (patch) | |
tree | 0594b64fc835c9a5bbf6575836f47c0ac1a1051c /usr.bin/newkey/newkey.c | |
parent | a59a3a99ce709ed0944f5b38c6fc98d2be49eb9c (diff) | |
download | FreeBSD-src-8e33fb69fc45f4bb7cc91a88fc201e074c9eeaf9.zip FreeBSD-src-8e33fb69fc45f4bb7cc91a88fc201e074c9eeaf9.tar.gz |
WARNS=2 fixup.
Turn on YP (NIS) while I'm about it.
Diffstat (limited to 'usr.bin/newkey/newkey.c')
-rw-r--r-- | usr.bin/newkey/newkey.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/usr.bin/newkey/newkey.c b/usr.bin/newkey/newkey.c index 141614e..6b98709 100644 --- a/usr.bin/newkey/newkey.c +++ b/usr.bin/newkey/newkey.c @@ -42,20 +42,24 @@ static const char rcsid[] = /* * Administrative tool to add a new user to the publickey database */ -#include <err.h> -#include <stdio.h> +#include <sys/types.h> +#include <sys/time.h> +#include <sys/resource.h> #include <rpc/rpc.h> #include <rpc/key_prot.h> #ifdef YP +#include <sys/wait.h> #include <rpcsvc/yp_prot.h> #include <rpcsvc/ypclnt.h> -#include <sys/wait.h> #include <netdb.h> #endif /* YP */ +#include <err.h> #include <pwd.h> +#include <stdio.h> #include <string.h> #include <unistd.h> -#include <sys/resource.h> + +#include "extern.h" #ifdef YP #define MAXMAPNAMELEN 256 @@ -73,11 +77,8 @@ static const char rcsid[] = #endif #ifdef YP -static char *basename(); -static char SHELL[] = "/bin/sh"; static char YPDBPATH[]="/var/yp"; static char PKMAP[] = "publickey.byname"; -static char UPDATEFILE[] = "updaters"; #else static char PKFILE[] = "/etc/publickey"; static char *err_string(); @@ -173,6 +174,7 @@ usage() /* * Set the entry in the public key file */ +int setpublicmap(name, public, secret) char *name; char *public; |