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  (0)  is  returned, otherwise a negative
36       error 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 <bugs@gnutls.org>.
41       Home page: http://www.gnutls.org
42
43
45       Copyright © 2001-2014 Free Software Foundation, Inc..
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 /usr/share/doc/gnutls/ directory does not contain the HTML  form
53       visit
54
55       http://www.gnutls.org/manual/
56
57gnutls                              3.3.29         gnutls_pkcs7_get_crt_raw(3)
Impressum