1gnutls_ocsp_resp_get_response(3)    gnutls    gnutls_ocsp_resp_get_response(3)
2
3
4

NAME

6       gnutls_ocsp_resp_get_response - API function
7

SYNOPSIS

9       #include <gnutls/ocsp.h>
10
11       int        gnutls_ocsp_resp_get_response(gnutls_ocsp_resp_t       resp,
12       gnutls_datum_t * response_type_oid, gnutls_datum_t * response);
13

ARGUMENTS

15       gnutls_ocsp_resp_t resp
16                   should contain a gnutls_ocsp_resp_t type
17
18       gnutls_datum_t * response_type_oid
19                   newly allocated output buffer with response type OID
20
21       gnutls_datum_t * response
22                   newly allocated output buffer with DER encoded response
23

DESCRIPTION

25       This function will extract the response type OID in  and  the  response
26       data from an OCSP response.  Normally the
27        response_type_oid is always "1.3.6.1.5.5.7.48.1.1" which means the
28        response  should  be decoded as a Basic OCSP Response, but technically
29       other response types could be used.
30
31       This function is typically only useful when you  want  to  extract  the
32       response  type  OID  of an response for diagnostic purposes.  Otherwise
33       gnutls_ocsp_resp_import() will decode the basic OCSP response part  and
34       the caller need not worry about that aspect.
35

RETURNS

37       On  success,  GNUTLS_E_SUCCESS  (0)  is  returned, otherwise a negative
38       error value.
39

REPORTING BUGS

41       Report bugs to <bugs@gnutls.org>.
42       Home page: https://www.gnutls.org
43
44
46       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
47       Copying and distribution of this file, with  or  without  modification,
48       are  permitted  in  any  medium  without royalty provided the copyright
49       notice and this notice are preserved.
50

SEE ALSO

52       The full documentation for gnutls is maintained as  a  Texinfo  manual.
53       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
54       visit
55
56       https://www.gnutls.org/manual/
57
58gnutls                              3.6.11    gnutls_ocsp_resp_get_response(3)
Impressum