UID(3)

NAME
uid - routines to manipulate user identifications

SYNOPSIS
#include <pgplib.h>
int
uid2buf(PGPuserid_t *uid, u_char **buf);
int
buf2uid(u_char *buf, int len, PGPuserid_t *uid);
void
free_uid(PGPuserid_t *uid);

DESCRIPTION
These routines manipulate user identificatiom packages. uid2buf() and buf2uid() operate on a package compatible with RFC1991 that store strings containing the "name" associated with keys. The size of the buffer returned by the former can be found with get_packetlen(). free_uid() only frees the internal state (and not the space occupied by the structure). .

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

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

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

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