1gnutls_pkcs7_get_crt_raw(3) gnutls gnutls_pkcs7_get_crt_raw(3)
2
3
4
6 gnutls_pkcs7_get_crt_raw - This function returns a certificate in a
7 PKCS7 certificate set
8
10 #include <gnutls/x509.h>
11
12 int gnutls_pkcs7_get_crt_raw(gnutls_pkcs7_t pkcs7, int indx, void *
13 certificate, size_t * certificate_size);
14
16 gnutls_pkcs7_t pkcs7
17
18 int indx contains the index of the certificate to extract
19
20 void * certificate
21 the contents of the certificate will be copied there (may
22 be null)
23
24 size_t * certificate_size
25 should hold the size of the certificate
26
28 This function will return a certificate of the PKCS7 or RFC2630 cer‐
29 tificate set. Returns 0 on success. If the provided buffer is not long
30 enough, then certificate_size is updated and GNUTLS_E_SHORT_MEMORY_BUF‐
31 FER is returned.
32
33 After the last certificate has been read
34 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
35
37 Report bugs to <bug-gnutls@gnu.org>.
38
40 Copyright © 2006 Free Software Foundation.
41 Permission is granted to make and distribute verbatim copies of this
42 manual provided the copyright notice and this permission notice are
43 preserved on all copies.
44
46 The full documentation for gnutls is maintained as a Texinfo manual.
47 If the info and gnutls programs are properly installed at your site,
48 the command
49
50 info gnutls
51
52 should give you access to the complete manual.
53
54
55
56gnutls 1.6.3 gnutls_pkcs7_get_crt_raw(3)