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/libcr/rpc/Attic/publickey.3,v 1.2 2003/06/17 04:26:45 dillon Exp $
9 .Nm publickey , getpublickey , getsecretkey
10 .Nd "get public or secret key"
18 .Fa "char netname[MAXNETNAMELEN+1]"
19 .Fa "char publickey[HEXKEYBYTES+1]"
23 .Fa "char netname[MAXNETNAMELEN+1]"
24 .Fa "char secretkey[HEXKEYBYTES+1]"
28 These routines are used to get public and secret keys from the
32 has an extra argument,
34 which is used to decrypt the encrypted secret key stored in the database.
35 Both routines return 1 if they are successful in finding the key, 0 otherwise.
36 The keys are returned as
37 .Dv NULL Ns \-terminated ,
39 If the password supplied to
41 fails to decrypt the secret key, the routine will return 1 but the
50 .%T "RPC Programmer's Manual"
52 .Pa /usr/share/doc/psd/23.rpc .