TRUST(3)

NAME
trust - routines to manipulate trust bytes

SYNOPSIS
#include <pgplib.h>
int
trust2buf(PGPuserid_t *uid, u_char **buf);
int
buf2trust(u_char *buf, int len, PGPuserid_t *uid);

DESCRIPTION
These routines manipulate trust-byte packages. trust2buf() and buf2trust() operate on a package compatible with RFC1991 that store a trust byte in a keyring.

RETURN VALUES
Upon success 0 is returned. If an error occures, -1 is returned. buf2trust() will return 1 if there is a synax error in the input.

SEE ALSO
malloc(3) free(3) get_packetlen(3) PGPlib(3)

STANDARDS
The packet generated by trust2buf() is compatible with the format described in RFC1991.

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