1 .\" @(#)publickey.3r 2.1 88/08/07 4.0 RPCSRC
2 .\" $FreeBSD: src/lib/libc/rpc/publickey.3,v 1.4.2.2 2001/12/14 18:33:56 ru Exp $
3 .\" $DragonFly: src/lib/libc/rpc/publickey.3,v 1.3 2005/08/05 22:35:10 swildner Exp $
12 .Nd "get public or secret key"
20 .Fa "char netname[MAXNETNAMELEN+1]"
21 .Fa "char publickey[HEXKEYBYTES+1]"
25 .Fa "char netname[MAXNETNAMELEN+1]"
26 .Fa "char secretkey[HEXKEYBYTES+1]"
30 These routines are used to get public and secret keys from the
34 has an extra argument,
36 which is used to decrypt the encrypted secret key stored in the database.
37 Both routines return 1 if they are successful in finding the key, 0 otherwise.
38 The keys are returned as
39 .Dv NULL Ns \-terminated ,
41 If the password supplied to
43 fails to decrypt the secret key, the routine will return 1 but the
52 .%T "RPC Programmer's Manual"
54 .Pa /usr/share/doc/psd/23.rpc .