GET_ONLY_PUBKEY(3)

NAME
get_only_pubkey - get a public key without signatures and UID's

SYNOPSIS
#include <pgplib.h>
int
get_only_pubkey(PGPKEYID id, PGPpubkey_t **key);

DESCRIPTION
The public key id is retrieved from the database. The space taken up by the key has been allocated by means of malloc.

RETURN VALUES
If the key was found and no error occured, 0 is returned. If the key was not found, 1 is returned. If an error occured, -1 is returned.

SEE ALSO
free(3) get_pubkey_rec(3) malloc(3)

STANDARDS

HISTORY
Written by Tage Stabell-Kulų. First appeared in PGPlib 0.1