1gnutls_certificate_set_ocsp_gsntuattluss__creegrqntuuietfslitsc_aftiel_es2e(t3_)ocsp_status_request_file2(3)
2
3
4

NAME

6       gnutls_certificate_set_ocsp_status_request_file2 - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int    gnutls_certificate_set_ocsp_status_request_file2(gnutls_certifi‐
12       cate_credentials_t  sc,  const  char  *  response_file,  unsigned  idx,
13       gnutls_x509_crt_fmt_t fmt);
14

ARGUMENTS

16       gnutls_certificate_credentials_t sc
17                   is a credentials structure.
18
19       const char * response_file
20                   a filename of the OCSP response
21
22       unsigned idx
23                   is  a  certificate  index  as  returned  by gnutls_certifi‐
24                   cate_set_key() and friends
25
26       gnutls_x509_crt_fmt_t fmt
27                   is PEM or DER
28

DESCRIPTION

30       This function loads the OCSP responses to be sent to the peer  for  the
31       certificate chain specified by  idx . When  fmt is set to PEM, multiple
32       responses can be loaded.
33
34       This function must be called after setting any certificates, and cannot
35       be  used  for  certificates that are provided via a callback -- that is
36       when gnutls_certificate_set_retrieve_function() is used. In  that  case
37       consider using gnutls_certificate_set_retrieve_function3().
38
39       This  function  can  be  called  multiple times when multiple responses
40       applicable to the certificate chain are  available.   If  the  response
41       provided does not match any certificates present in the chain, the code
42       GNUTLS_E_OCSP_MISMATCH_WITH_CERTS is  returned.   If  the  response  is
43       already  expired  at  the  time of loading the code GNUTLS_E_EXPIRED is
44       returned.
45

RETURNS

47       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
48       error code is returned.
49

SINCE

51       3.1.3
52

REPORTING BUGS

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

SEE ALSO

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