Blame doc/manpages/gnutls_certificate_get_crt_raw.3

Packit 549fdc
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit 549fdc
.TH "gnutls_certificate_get_crt_raw" 3 "3.6.2" "gnutls" "gnutls"
Packit 549fdc
.SH NAME
Packit 549fdc
gnutls_certificate_get_crt_raw \- API function
Packit 549fdc
.SH SYNOPSIS
Packit 549fdc
.B #include <gnutls/gnutls.h>
Packit 549fdc
.sp
Packit 549fdc
.BI "int gnutls_certificate_get_crt_raw(gnutls_certificate_credentials_t " sc ", unsigned " idx1 ", unsigned " idx2 ", gnutls_datum_t * " cert ");"
Packit 549fdc
.SH ARGUMENTS
Packit 549fdc
.IP "gnutls_certificate_credentials_t sc" 12
Packit 549fdc
is a \fBgnutls_certificate_credentials_t\fP type.
Packit 549fdc
.IP "unsigned idx1" 12
Packit 549fdc
the index of the certificate chain if multiple are present
Packit 549fdc
.IP "unsigned idx2" 12
Packit 549fdc
the index of the certificate in the chain. Zero gives the server's certificate.
Packit 549fdc
.IP "gnutls_datum_t * cert" 12
Packit 549fdc
Will hold the DER encoded certificate.
Packit 549fdc
.SH "DESCRIPTION"
Packit 549fdc
This function will return the DER encoded certificate of the
Packit 549fdc
server or any other certificate on its certificate chain (based on  \fIidx2\fP ).
Packit 549fdc
The returned data should be treated as constant and only accessible during the lifetime
Packit 549fdc
of  \fIsc\fP . The  \fIidx1\fP matches the value \fBgnutls_certificate_set_x509_key()\fP and friends
Packit 549fdc
functions.
Packit 549fdc
.SH "RETURNS"
Packit 549fdc
On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned, otherwise a
Packit 549fdc
negative error value. In case the indexes are out of bounds \fBGNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE\fP
Packit 549fdc
is returned.
Packit 549fdc
.SH "SINCE"
Packit 549fdc
3.2.5
Packit 549fdc
.SH "REPORTING BUGS"
Packit 549fdc
Report bugs to <bugs@gnutls.org>.
Packit 549fdc
.br
Packit 549fdc
Home page: http://www.gnutls.org
Packit 549fdc
Packit 549fdc
.SH COPYRIGHT
Packit 549fdc
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
Packit 549fdc
.br
Packit 549fdc
Copying and distribution of this file, with or without modification,
Packit 549fdc
are permitted in any medium without royalty provided the copyright
Packit 549fdc
notice and this notice are preserved.
Packit 549fdc
.SH "SEE ALSO"
Packit 549fdc
The full documentation for
Packit 549fdc
.B gnutls
Packit 549fdc
is maintained as a Texinfo manual.
Packit 549fdc
If the /usr/share/doc/gnutls/
Packit 549fdc
directory does not contain the HTML form visit
Packit 549fdc
.B
Packit 549fdc
.IP http://www.gnutls.org/manual/
Packit 549fdc
.PP