1 .\" @(#)publickey.3r 2.1 88/08/07 4.0 RPCSRC
8 .Nm publickey , getpublickey , getsecretkey
9 .Nd "get public or secret key"
17 .Fa "const char netname[MAXNETNAMELEN+1]"
18 .Fa "char publickey[HEXKEYBYTES+1]"
22 .Fa "char netname[MAXNETNAMELEN+1]"
23 .Fa "char secretkey[HEXKEYBYTES+1]"
27 These routines are used to get public and secret keys from the
33 has an extra argument,
35 which is used to decrypt the encrypted secret key stored in the database.
36 Both routines return 1 if they are successful in finding the key, 0 otherwise.
37 The keys are returned as
38 .Dv NULL Ns \-terminated ,
40 If the password supplied to
42 fails to decrypt the secret key, the routine will return 1 but the
51 .%T "RPC Programmer's Manual"
53 .Pa /usr/share/doc/psd/23.rpc .