Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ publickey(3N) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

publickey(4)



PUBLICKEY(3N-SVR4)  RISC/os Reference Manual   PUBLICKEY(3N-SVR4)



NAME
     publickey: getpublickey, getsecretkey - retrieve public or
          secret key

SYNOPSIS
     #include <rpc/rpc.h>
     #include <rpc/keyprot.h>

     getpublickey(const char netname[MAXNETNAMELEN],
          char publickey[HEXKEYBYTES]);

     getsecretkey(const char netname[MAXNETNAMELEN],
          char secretkey[HEXKEYBYTES], const char *passwd);

DESCRIPTION
     getpublickey and getsecretkey get public and secret keys for
     netname from the publickey(4) database.

     getsecretkey has an extra argument, passwd, used to decrypt
     the encrypted secret key stored in the database.

     Both routines return 1 if they are successful in finding the
     key, 0 otherwise.  The keys are returned as NULL-terminated,
     hexadecimal strings.  If the password supplied to getsecret-
     key fails to decrypt the secret key, the routine will return
     1 but the secretkey argument will be a NULL string.

SEE ALSO
     publickey(4).


























                        Printed 11/19/92                   Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026