



@deftypefun {int} {gnutls_openpgp_crt_get_name} (gnutls_openpgp_crt_t @var{key}, int @var{idx}, char * @var{buf}, size_t * @var{sizeof_buf})
@var{key}: the structure that contains the OpenPGP public key.

@var{idx}: the index of the ID to extract

@var{buf}: a pointer to a structure to hold the name, may be @code{NULL} 
to only get the  @code{sizeof_buf} .

@var{sizeof_buf}: holds the maximum size of  @code{buf} , on return hold the
actual/required size of  @code{buf} .

Extracts the userID from the parsed OpenPGP key.

@strong{Returns:} @code{GNUTLS_E_SUCCESS}  on success, and if the index of the ID
does not exist @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} , or an
error code.
@end deftypefun
