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_const_t    resp,
12       gnutls_datum_t * response_type_oid, gnutls_datum_t * response);
13

ARGUMENTS

15       gnutls_ocsp_resp_const_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 re‐
32       sponse  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
36       Since  3.7.0   response_type_oid ->size does not account for the termi‐
37       nating null byte.
38

RETURNS

40       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative  er‐
41       ror value.
42

REPORTING BUGS

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

SEE ALSO

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