ADD_SIG(3)

NAME
add_sig - add a UID to a public key

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

DESCRIPTION
Retrieves the public key key. If the key is found the sig is added (at the end, if not present) and the key again stored in the database. The signature is not validated against the available UID's. .

RETURN VALUES
If the update was successful, 0 is returned. If key could not be found 1 is returned. If the signature was already present, 2 is returned. If an error occured, -1 is returned. .

SEE ALSO
get_keyentry_from_buf(PGPlib) get_pubkey_rec(PGPlib) signature2buf(PGPlib) PGPlib(3) .

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