ADD_UID(3)

NAME
add_uid - ad a UID to a public key

SYNOPSIS
#include <pgplib.h>
int
add_uid(PGPKEYID key, PGPuserid_t *uid);
.

DESCRIPTION
Retrieves the public key key. If the key is found the uid is added (at the end) and the key again stored in the database. If the user identification was not present on the key, the uid is added to the database of UID's for later retrieval. .

RETURN VALUES
If both updates were sucessful, 0 is returned. If key could not be found 1 is returned. If an error occured, -1 is returned. .

SEE ALSO
add_sug(PGPlib) get_pubkey_rec(PGPlib) PGPlib(3) .

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