1gnutls_ocsp_req_get_extension(3) gnutls gnutls_ocsp_req_get_extension(3)
2
3
4
6 gnutls_ocsp_req_get_extension - API function
7
9 #include <gnutls/ocsp.h>
10
11 int gnutls_ocsp_req_get_extension(gnutls_ocsp_req_const_t req, unsigned
12 indx, gnutls_datum_t * oid, unsigned int * critical, gnutls_datum_t *
13 data);
14
16 gnutls_ocsp_req_const_t req
17 should contain a gnutls_ocsp_req_t type
18
19 unsigned indx
20 Specifies which extension OID to get. Use (0) to get the
21 first one.
22
23 gnutls_datum_t * oid
24 will hold newly allocated buffer with OID of extension, may
25 be NULL
26
27 unsigned int * critical
28 output variable with critical flag, may be NULL.
29
30 gnutls_datum_t * data
31 will hold newly allocated buffer with extension data, may
32 be NULL
33
35 This function will return all information about the requested extension
36 in the OCSP request. The information returned is the OID, the critical
37 flag, and the data itself. The extension OID will be stored as a
38 string. Any of oid , critical , and data may be NULL which means
39 that the caller is not interested in getting that information back.
40
41 The caller needs to deallocate memory by calling gnutls_free() on
42 oid ->data and data ->data.
43
45 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
46 error code is returned. If you have reached the last extension avail‐
47 able GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
48
50 Report bugs to <bugs@gnutls.org>.
51 Home page: https://www.gnutls.org
52
53
55 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
56 Copying and distribution of this file, with or without modification,
57 are permitted in any medium without royalty provided the copyright
58 notice and this notice are preserved.
59
61 The full documentation for gnutls is maintained as a Texinfo manual.
62 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
63 visit
64
65 https://www.gnutls.org/manual/
66
67gnutls 3.6.13 gnutls_ocsp_req_get_extension(3)