1gnutls_certificate_get_ocsp_expiratiognng(un3tu)ltsls_certificate_get_ocsp_expiration(3)
2
3
4

NAME

6       gnutls_certificate_get_ocsp_expiration - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       time_t   gnutls_certificate_get_ocsp_expiration(gnutls_certificate_cre‐
12       dentials_t sc, unsigned idx, int oidx, unsigned flags);
13

ARGUMENTS

15       gnutls_certificate_credentials_t sc
16                   is a credentials structure.
17
18       unsigned idx
19                   is a certificate chain index as returned by gnutls_certifi‐
20                   cate_set_key() and friends
21
22       int oidx    is an OCSP response index
23
24       unsigned flags
25                   should be zero
26

DESCRIPTION

28       This  function  returns  the  validity of the loaded OCSP responses, to
29       provide information on when to reload/refresh them.
30
31       Note that the credentials structure should be read-only  when  in  use,
32       thus  when  reloading,  either the credentials structure must not be in
33       use by any sessions, or a new credentials structure should be allocated
34       for new sessions.
35
36       When   oidx  is (-1) then the minimum refresh time for all responses is
37       returned. Otherwise the index specifies the response  corresponding  to
38       the  odix certificate in the certificate chain.
39

RETURNS

41       On  success,  the  expiration  time  of  the  OCSP  response. Otherwise
42       (time_t)(-1) on error, or (time_t)-2 on out of bounds.
43

SINCE

45       3.6.3
46

REPORTING BUGS

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

SEE ALSO

59       The full documentation for gnutls is maintained as  a  Texinfo  manual.
60       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
61       visit
62
63       https://www.gnutls.org/manual/
64
65gnutls                               3g.n8u.t2ls_certificate_get_ocsp_expiration(3)
Impressum