1gnutls_pkcs7_get_crt_raw(3)         gnutls         gnutls_pkcs7_get_crt_raw(3)
2
3
4

NAME

6       gnutls_pkcs7_get_crt_raw  -  get a certificate from a PKCS7 certificate
7       set
8

SYNOPSIS

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

ARGUMENTS

16       gnutls_pkcs7_t pkcs7
17                   should contain a gnutls_pkcs7_t structure
18
19       int indx    contains the index of the certificate to extract
20
21       void * certificate
22                   the  contents  of the certificate will be copied there (may
23                   be null)
24
25       size_t * certificate_size
26                   should hold the size of the certificate
27

DESCRIPTION

29       This function will return a certificate of the PKCS7  or  RFC2630  cer‐
30       tificate set.
31
32       After       the      last      certificate      has      been      read
33       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
34

RETURNS

36       On success, GNUTLS_E_SUCCESS is returned, otherwise  a  negative  error
37       value.   If  the  provided  buffer  is  not  long enough, then certifi‐
38       cate_size is updated and GNUTLS_E_SHORT_MEMORY_BUFFER is returned.
39

REPORTING BUGS

41       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
42       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
43       http://www.gnu.org/gethelp/
44
46       Copyright © 2008 Free Software Foundation.
47       Copying and distribution of this file, with  or  without  modification,
48       are  permitted  in  any  medium  without royalty provided the copyright
49       notice and this notice are preserved.
50

SEE ALSO

52       The full documentation for gnutls is maintained as  a  Texinfo  manual.
53       If  the  info  and gnutls programs are properly installed at your site,
54       the command
55
56              info gnutls
57
58       should give you access to the complete manual.
59
60
61
62gnutls                               2.8.6         gnutls_pkcs7_get_crt_raw(3)
Impressum