.\" DO NOT MODIFY THIS FILE! It was generated by gdoc. .TH "gnutls_openpgp_crt_get_name" 3 "3.5.8" "gnutls" "gnutls" .SH NAME gnutls_openpgp_crt_get_name \- API function .SH SYNOPSIS .B #include .sp .BI "int gnutls_openpgp_crt_get_name(gnutls_openpgp_crt_t " key ", int " idx ", char * " buf ", size_t * " sizeof_buf ");" .SH ARGUMENTS .IP "gnutls_openpgp_crt_t key" 12 the structure that contains the OpenPGP public key. .IP "int idx" 12 the index of the ID to extract .IP "char * buf" 12 a pointer to a structure to hold the name, may be \fBNULL\fP to only get the \fIsizeof_buf\fP . .IP "size_t * sizeof_buf" 12 holds the maximum size of \fIbuf\fP , on return hold the actual/required size of \fIbuf\fP . .SH "DESCRIPTION" Extracts the userID from the parsed OpenPGP key. .SH "RETURNS" \fBGNUTLS_E_SUCCESS\fP on success, and if the index of the ID does not exist \fBGNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE\fP, or an error code. .SH "REPORTING BUGS" Report bugs to . .br Home page: http://www.gnutls.org .SH COPYRIGHT Copyright \(co 2001-2017 Free Software Foundation, Inc., and others. .br Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. .SH "SEE ALSO" The full documentation for .B gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form visit .B .IP http://www.gnutls.org/manual/ .PP