1gnutls_certificate_set_ocgsnpu_tsltsa_tcuesr_triegfqniuucetaslttse__fsuentc_toicosnp(_3s)tatus_request_function(3)
2
3
4
6 gnutls_certificate_set_ocsp_status_request_function - API function
7
9 #include <gnutls/gnutls.h>
10
11 void gnutls_certificate_set_ocsp_status_request_function(gnutls_cer‐
12 tificate_credentials_t sc, gnutls_status_request_ocsp_func ocsp_func,
13 void * ptr);
14
16 gnutls_certificate_credentials_t sc
17 is a gnutls_certificate_credentials_t type.
18
19 gnutls_status_request_ocsp_func ocsp_func
20 function pointer to OCSP status request callback.
21
22 void * ptr opaque pointer passed to callback function
23
25 This function is to be used by server to register a callback to handle
26 OCSP status requests from the client. The callback will be invoked if
27 the client supplied a status-request OCSP extension. The callback
28 function prototype is:
29
30 typedef int (*gnutls_status_request_ocsp_func) (gnutls_session_t ses‐
31 sion, void *ptr, gnutls_datum_t *ocsp_response);
32
33 The callback will be invoked if the client requests an OCSP certificate
34 status. The callback may return GNUTLS_E_NO_CERTIFICATE_STATUS, if
35 there is no recent OCSP response. If the callback returns GNUTLS_E_SUC‐
36 CESS, it is expected to have the ocsp_response field set with a valid
37 (DER-encoded) OCSP response. The response must be a value allocated
38 using gnutls_malloc(), and will be deinitialized by the caller.
39
40 It is possible to set a specific callback for each provided certificate
41 using gnutls_certificate_set_ocsp_status_request_function2().
42
44 3.1.3
45
47 Report bugs to <bugs@gnutls.org>.
48 Home page: http://www.gnutls.org
49
50
52 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
53 Copying and distribution of this file, with or without modification,
54 are permitted in any medium without royalty provided the copyright
55 notice and this notice are preserved.
56
58 The full documentation for gnutls is maintained as a Texinfo manual.
59 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
60 visit
61
62 http://www.gnutls.org/manual/
63
64gnutls gnutls_certif3i.c6a.t5e_set_ocsp_status_request_function(3)