1gnutls_ocsp_resp_list_import2(3)    gnutls    gnutls_ocsp_resp_list_import2(3)
2
3
4

NAME

6       gnutls_ocsp_resp_list_import2 - API function
7

SYNOPSIS

9       #include <gnutls/ocsp.h>
10
11       int gnutls_ocsp_resp_list_import2(gnutls_ocsp_resp_t ** ocsps, unsigned
12       int * size, const  gnutls_datum_t  *  resp_data,  gnutls_x509_crt_fmt_t
13       format, unsigned int flags);
14

ARGUMENTS

16       gnutls_ocsp_resp_t ** ocsps
17                   Will hold the parsed OCSP response list.
18
19       unsigned int * size
20                   It will contain the size of the list.
21
22       const gnutls_datum_t * resp_data
23                   The PEM encoded OCSP list.
24
25       gnutls_x509_crt_fmt_t format
26                   One of GNUTLS_X509_FMT_PEM or GNUTLS_X509_FMT_DER
27
28       unsigned int flags
29                   must   be  (0)  or  an  OR'd  sequence  of  gnutls_certifi‐
30                   cate_import_flags.
31

DESCRIPTION

33       This function will convert the given PEM encoded OCSP response list  to
34       the  native  gnutls_ocsp_resp_t  format.  The  output will be stored in
35       ocsps which will be allocated and initialized.
36
37       The OCSP responses should have a header of "OCSP RESPONSE".
38
39       To   deinitialize   responses,   you   need   to   deinitialize    each
40       gnutls_ocsp_resp_t  structure  independently,  and use gnutls_free() at
41       ocsps .
42
43       In   PEM   files,    when    no    OCSP    responses    are    detected
44       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
45

RETURNS

47       the number of responses read or a negative error value.
48

SINCE

50       3.6.3
51

REPORTING BUGS

53       Report bugs to <bugs@gnutls.org>.
54       Home page: http://www.gnutls.org
55
56
58       Copyright © 2001-2018 Free Software Foundation, Inc., and others.
59       Copying  and  distribution  of this file, with or without modification,
60       are permitted in any medium  without  royalty  provided  the  copyright
61       notice and this notice are preserved.
62

SEE ALSO

64       The  full  documentation  for gnutls is maintained as a Texinfo manual.
65       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
66       visit
67
68       http://www.gnutls.org/manual/
69
70gnutls                               3.6.5    gnutls_ocsp_resp_list_import2(3)
Impressum