1gnutls_ocsp_status_request_get2(3)  gnutls  gnutls_ocsp_status_request_get2(3)
2
3
4

NAME

6       gnutls_ocsp_status_request_get2 - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_ocsp_status_request_get2(gnutls_session_t session, unsigned
12       idx, gnutls_datum_t * response);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls_session_t type.
17
18       unsigned idx
19                   the index of peer's certificate
20
21       gnutls_datum_t * response
22                   a gnutls_datum_t with DER encoded OCSP response
23

DESCRIPTION

25       This function returns the OCSP status response received  from  the  TLS
26       server  for  the  certificate index provided.  The index corresponds to
27       certificates as returned by gnutls_certificate_get_peers. When index is
28       zero   this   function   operates   identically   to   gnutls_ocsp_sta‐
29       tus_request_get().
30
31       The returned  response should  be  treated  as  constant.  If  no  OCSP
32       response     is     available     for     the    given    index    then
33       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
34

RETURNS

36       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
37       error code is returned.
38

SINCE

40       3.6.3
41

REPORTING BUGS

43       Report bugs to <bugs@gnutls.org>.
44       Home page: https://www.gnutls.org
45
46
48       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
49       Copying  and  distribution  of this file, with or without modification,
50       are permitted in any medium  without  royalty  provided  the  copyright
51       notice and this notice are preserved.
52

SEE ALSO

54       The  full  documentation  for gnutls is maintained as a Texinfo manual.
55       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
56       visit
57
58       https://www.gnutls.org/manual/
59
60gnutls                              3.6.11  gnutls_ocsp_status_request_get2(3)
Impressum