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

NAME

6       gnutls_pkcs7_get_crt_raw - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int  gnutls_pkcs7_get_crt_raw(gnutls_pkcs7_t  pkcs7,  int  indx, void *
12       certificate, size_t * certificate_size);
13

ARGUMENTS

15       gnutls_pkcs7_t pkcs7
16                   should contain a gnutls_pkcs7_t structure
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

DESCRIPTION

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

RETURNS

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

REPORTING BUGS

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

SEE ALSO

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