1gnutls_ocsp_req_get_extension(3)    gnutls    gnutls_ocsp_req_get_extension(3)
2
3
4

NAME

6       gnutls_ocsp_req_get_extension - API function
7

SYNOPSIS

9       #include <gnutls/ocsp.h>
10
11       int gnutls_ocsp_req_get_extension(gnutls_ocsp_req_t req, unsigned indx,
12       gnutls_datum_t * oid, unsigned int * critical, gnutls_datum_t * data);
13

ARGUMENTS

15       gnutls_ocsp_req_t req
16                   should contain a gnutls_ocsp_req_t structure
17
18       unsigned indx
19                   Specifies which extension OID to get. Use (0)  to  get  the
20                   first one.
21
22       gnutls_datum_t * oid
23                   will hold newly allocated buffer with OID of extension, may
24                   be NULL
25
26       unsigned int * critical
27                   output variable with critical flag, may be NULL.
28
29       gnutls_datum_t * data
30                   will hold newly allocated buffer with extension  data,  may
31                   be NULL
32

DESCRIPTION

34       This function will return all information about the requested extension
35       in the OCSP request.  The information returned is the OID, the critical
36       flag,  and  the  data  itself.   The  extension OID will be stored as a
37       string.  Any of  oid ,  critical , and  data may be  NULL  which  means
38       that the caller is not interested in getting that information back.
39
40       The caller needs to deallocate memory by calling gnutls_free() on
41        oid ->data and  data ->data.
42

RETURNS

44       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
45       error code is returned.  If you have reached the last extension  avail‐
46       able GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
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                              3.3.29    gnutls_ocsp_req_get_extension(3)
Impressum