secretkey.c (92917) | secretkey.c (189087) |
---|---|
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. --- 15 unchanged lines hidden (view full) --- 24 * Sun has been advised of the possibility of such damages. 25 * 26 * Sun Microsystems, Inc. 27 * 2550 Garcia Avenue 28 * Mountain View, California 94043 29 */ 30 31#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. --- 15 unchanged lines hidden (view full) --- 24 * Sun has been advised of the possibility of such damages. 25 * 26 * Sun Microsystems, Inc. 27 * 2550 Garcia Avenue 28 * Mountain View, California 94043 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/lib/librpcsvc/secretkey.c 92917 2002-03-21 23:54:04Z obrien $"); | 32__FBSDID("$FreeBSD: head/lib/librpcsvc/secretkey.c 189087 2009-02-26 20:32:11Z ed $"); |
33 34#if !defined(lint) && defined(SCCSIDS) 35static char sccsid[] = "@(#)secretkey.c 1.8 91/03/11 Copyr 1986 Sun Micro"; 36#endif 37 38/* 39 * secretkey.c 40 * Copyright (C) 1986, Sun Microsystems, Inc. --- 12 unchanged lines hidden (view full) --- 53 54extern int xdecrypt( char *, char * ); 55 56/* 57 * Get somebody's encrypted secret key from the database, using the given 58 * passwd to decrypt it. 59 */ 60int | 33 34#if !defined(lint) && defined(SCCSIDS) 35static char sccsid[] = "@(#)secretkey.c 1.8 91/03/11 Copyr 1986 Sun Micro"; 36#endif 37 38/* 39 * secretkey.c 40 * Copyright (C) 1986, Sun Microsystems, Inc. --- 12 unchanged lines hidden (view full) --- 53 54extern int xdecrypt( char *, char * ); 55 56/* 57 * Get somebody's encrypted secret key from the database, using the given 58 * passwd to decrypt it. 59 */ 60int |
61getsecretkey(netname, secretkey, passwd) 62 char *netname; 63 char *secretkey; 64 char *passwd; | 61getsecretkey(char *netname, char *secretkey, char *passwd) |
65{ 66 char lookup[3 * HEXKEYBYTES]; 67 char *p; 68 69 if (secretkey == NULL) 70 return (0); 71 if (!getpublicandprivatekey(netname, lookup)) 72 return (0); --- 17 unchanged lines hidden --- | 62{ 63 char lookup[3 * HEXKEYBYTES]; 64 char *p; 65 66 if (secretkey == NULL) 67 return (0); 68 if (!getpublicandprivatekey(netname, lookup)) 69 return (0); --- 17 unchanged lines hidden --- |