STORE_UID(3)

NAME
store_uid - add a UID to a public key

SYNOPSIS
#include <pgplib.h>
int
store_uid(PGPuserid_t uid, PGPKEYID id);

DESCRIPTION
First, the uid is added the database of UID's under the index id. Then, the id is added to the reverse-string database with the uid as index. Last, the public key id is retrieved and uid added to it (if not already there).

RETURN VALUES
If the uid was sucessfully added to the key, 0 is returned. If the key id could not be found, 1 is returned. Upon error, -1 is returned.

SEE ALSO
PGPlib

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