1gnutls_ocsp_req_set_extension(3) gnutls gnutls_ocsp_req_set_extension(3)
2
3
4
6 gnutls_ocsp_req_set_extension - API function
7
9 #include <gnutls/ocsp.h>
10
11 int gnutls_ocsp_req_set_extension(gnutls_ocsp_req_t req, const char *
12 oid, unsigned int critical, const gnutls_datum_t * data);
13
15 gnutls_ocsp_req_t req
16 should contain a gnutls_ocsp_req_t type
17
18 const char * oid
19 buffer with OID of extension as a string.
20
21 unsigned int critical
22 critical flag, normally false.
23
24 const gnutls_datum_t * data
25 the extension data
26
28 This function will add an extension to the OCSP request. Calling this
29 function multiple times for the same OID will overwrite values from
30 earlier calls.
31
33 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
34 error code is returned.
35
37 Report bugs to <bugs@gnutls.org>.
38 Home page: https://www.gnutls.org
39
40
42 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
43 Copying and distribution of this file, with or without modification,
44 are permitted in any medium without royalty provided the copyright
45 notice and this notice are preserved.
46
48 The full documentation for gnutls is maintained as a Texinfo manual.
49 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
50 visit
51
52 https://www.gnutls.org/manual/
53
54gnutls 3.6.7 gnutls_ocsp_req_set_extension(3)