1gnutls_certificate_set_ocsp_stgantuutsl_sr_egcqneuurettslitsf_imceamt(e3_)set_ocsp_status_request_mem(3)
2
3
4
6 gnutls_certificate_set_ocsp_status_request_mem - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_certificate_set_ocsp_status_request_mem(gnutls_certifi‐
12 cate_credentials_t sc, const gnutls_datum_t * resp_data, unsigned idx,
13 gnutls_x509_crt_fmt_t fmt);
14
16 gnutls_certificate_credentials_t sc
17 is a credentials structure.
18
19 const gnutls_datum_t * resp_data
20 a memory buffer holding an 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
30 This function sets 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
35 the ability to set multiple OCSP responses per credential structure via
36 the index idx was added in version 3.5.6. To keep backwards compati‐
37 bility, it requires using gnutls_certificate_set_flags() with the
38 GNUTLS_CERTIFICATE_API_V2 flag to make the set certificate functions
39 return an index usable by this function.
40
41 This function must be called after setting any certificates, and cannot
42 be used for certificates that are provided via a callback -- that is
43 when gnutls_certificate_set_retrieve_function() is used.
44
45 This function can be called multiple times when multiple responses
46 which apply to the certificate chain are available. If the response
47 provided does not match any certificates present in the chain, the code
48 GNUTLS_E_OCSP_MISMATCH_WITH_CERTS is returned. If the response is al‐
49 ready expired at the time of loading the code GNUTLS_E_EXPIRED is re‐
50 turned.
51
53 On success, the number of loaded responses is returned, otherwise a
54 negative error code.
55
57 3.6.3
58
60 Report bugs to <bugs@gnutls.org>.
61 Home page: https://www.gnutls.org
62
63
65 Copyright © 2001- Free Software Foundation, Inc., and others.
66 Copying and distribution of this file, with or without modification,
67 are permitted in any medium without royalty provided the copyright no‐
68 tice and this notice are preserved.
69
71 The full documentation for gnutls is maintained as a Texinfo manual.
72 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
73 visit
74
75 https://www.gnutls.org/manual/
76
77gnutls gnutls_c3e.r7t.i2ficate_set_ocsp_status_request_mem(3)