newkey.c (141481) | newkey.c (146466) |
---|---|
1/* 2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 3 * unrestricted use provided that this legend is included on all tape 4 * media and as a part of the software program in whole or part. Users 5 * may copy or modify Sun RPC without charge, but are not authorized 6 * to license or distribute it to anyone else except as part of a product or 7 * program developed by the user or with the express written consent of 8 * Sun Microsystems, Inc. --- 28 unchanged lines hidden (view full) --- 37/* 38 * Copyright (C) 1986, Sun Microsystems, Inc. 39 */ 40 41/* 42 * Administrative tool to add a new user to the publickey database 43 */ 44#include <sys/cdefs.h> | 1/* 2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 3 * unrestricted use provided that this legend is included on all tape 4 * media and as a part of the software program in whole or part. Users 5 * may copy or modify Sun RPC without charge, but are not authorized 6 * to license or distribute it to anyone else except as part of a product or 7 * program developed by the user or with the express written consent of 8 * Sun Microsystems, Inc. --- 28 unchanged lines hidden (view full) --- 37/* 38 * Copyright (C) 1986, Sun Microsystems, Inc. 39 */ 40 41/* 42 * Administrative tool to add a new user to the publickey database 43 */ 44#include <sys/cdefs.h> |
45__FBSDID("$FreeBSD: head/usr.bin/newkey/newkey.c 141481 2005-02-07 21:41:26Z stefanf $"); | 45__FBSDID("$FreeBSD: head/usr.bin/newkey/newkey.c 146466 2005-05-21 09:55:10Z ru $"); |
46 47#include <sys/types.h> 48#include <sys/time.h> 49#include <sys/resource.h> 50 51#include <rpc/rpc.h> 52#include <rpc/key_prot.h> 53 --- 111 unchanged lines hidden (view full) --- 165 exit(0); 166 /* NOTREACHED */ 167} 168 169static void 170usage(void) 171{ 172 (void)fprintf(stderr, "%s\n%s\n", | 46 47#include <sys/types.h> 48#include <sys/time.h> 49#include <sys/resource.h> 50 51#include <rpc/rpc.h> 52#include <rpc/key_prot.h> 53 --- 111 unchanged lines hidden (view full) --- 165 exit(0); 166 /* NOTREACHED */ 167} 168 169static void 170usage(void) 171{ 172 (void)fprintf(stderr, "%s\n%s\n", |
173 "usage: newkey [-u username]", 174 " newkey [-h hostname]"); | 173 "usage: newkey -h hostname", 174 " newkey -u username"); |
175 exit(1); 176} 177 178/* 179 * Set the entry in the public key file 180 */ 181int 182setpublicmap(char *name, char *public, char *secret) --- 53 unchanged lines hidden --- | 175 exit(1); 176} 177 178/* 179 * Set the entry in the public key file 180 */ 181int 182setpublicmap(char *name, char *public, char *secret) --- 53 unchanged lines hidden --- |