gnutls_openpgp_key_get_name(3)

gnutls_openpgp_key_get_name3

Extracts the userid

Usage

#include <gnutls/openpgp.h>

int gnutls_openpgp_key_get_name(gnutls_openpgp_key_t key, int idx, char * buf, size_t * sizeof_buf);

Arguments

gnutls_openpgp_key_t key

the structure that contains the OpenPGP public key.

int idx

the index of the ID to extract

char * buf

a pointer to a structure to hold the name

size_t * sizeof_buf

holds the size of 'buf'

Overview

Extracts the userID from the parsed OpenPGP key.

Returns 0 on success, and GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if the index of the ID does not exist.

Reporting bugs

Report bugs to <[email protected]>.

From gnutls-doc 1.4.4-3+etch5 in Debian 4.0 (Etch). Parsed by carta from the page's man source.