1gnutls_certificate_set_ocgsnpu_tsltsa_tcuesr_triegfqniuucetaslttse__fsuentc_toicosnp(_3s)tatus_request_function(3)
2
3
4

NAME

6       gnutls_certificate_set_ocsp_status_request_function - API function
7

SYNOPSIS

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

ARGUMENTS

16       gnutls_certificate_credentials_t sc
17                   is a gnutls_certificate_credentials_t structure.
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

DESCRIPTION

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, the server will provide the client with the ocsp_response.
37
38       The response must be a value allocated using gnutls_malloc(), and  will
39       be deinitialized when needed.
40

RETURNS

42       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
43       error code is returned.
44

SINCE

46       3.1.3
47

REPORTING BUGS

49       Report bugs to <bugs@gnutls.org>.
50       Home page: http://www.gnutls.org
51
52
54       Copyright © 2001-2014 Free Software Foundation, Inc..
55       Copying and distribution of this file, with  or  without  modification,
56       are  permitted  in  any  medium  without royalty provided the copyright
57       notice and this notice are preserved.
58

SEE ALSO

60       The full documentation for gnutls is maintained as  a  Texinfo  manual.
61       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
62       visit
63
64       http://www.gnutls.org/manual/
65
66gnutls                  gnutls_certi3f.i3c.a2t9e_set_ocsp_status_request_function(3)
Impressum