1
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2
.TH "gnutls_pkcs7_get_crt_raw" 3 "3.0.9" "gnutls" "gnutls"
4
gnutls_pkcs7_get_crt_raw \- API function
6
.B #include <gnutls/x509.h>
8
.BI "int gnutls_pkcs7_get_crt_raw(gnutls_pkcs7_t " pkcs7 ", int " indx ", void * " certificate ", size_t * " certificate_size ");"
10
.IP "gnutls_pkcs7_t pkcs7" 12
11
should contain a gnutls_pkcs7_t structure
13
contains the index of the certificate to extract
14
.IP "void * certificate" 12
15
the contents of the certificate will be copied
17
.IP "size_t * certificate_size" 12
18
should hold the size of the certificate
20
This function will return a certificate of the PKCS7 or RFC2630
23
After the last certificate has been read
24
\fBGNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE\fP will be returned.
26
On success, \fBGNUTLS_E_SUCCESS\fP (0) is returned, otherwise a
27
negative error value. If the provided buffer is not long enough,
28
then \fIcertificate_size\fPis updated and
29
\fBGNUTLS_E_SHORT_MEMORY_BUFFER\fP is returned.
31
Report bugs to <bug-gnutls@gnu.org>.
32
GnuTLS home page: http://www.gnu.org/software/gnutls/
33
General help using GNU software: http://www.gnu.org/gethelp/
35
Copyright \(co 2011 Free Software Foundation.
37
Copying and distribution of this file, with or without modification,
38
are permitted in any medium without royalty provided the copyright
39
notice and this notice are preserved.
41
The full documentation for
43
is maintained as a Texinfo manual. If the
47
programs are properly installed at your site, the command
51
should give you access to the complete manual.