1gnutls_ocsp_resp_get_responder2(3)  gnutls  gnutls_ocsp_resp_get_responder2(3)
2
3
4

NAME

6       gnutls_ocsp_resp_get_responder2 - API function
7

SYNOPSIS

9       #include <gnutls/ocsp.h>
10
11       int    gnutls_ocsp_resp_get_responder2(gnutls_ocsp_resp_const_t   resp,
12       gnutls_datum_t * dn, unsigned flags);
13

ARGUMENTS

15       gnutls_ocsp_resp_const_t resp
16                   should contain a gnutls_ocsp_resp_t type
17
18       gnutls_datum_t * dn
19                   newly allocated buffer with name
20
21       unsigned flags
22                   zero or GNUTLS_X509_DN_FLAG_COMPAT
23

DESCRIPTION

25       This function will extract the name of the Basic OCSP Response  in  the
26       provided  buffer.  The name will be in the form "C=xxxx,O=yyyy,CN=zzzz"
27       as described in RFC2253. The output string will be ASCII or  UTF-8  en‐
28       coded, depending on the certificate data.
29
30       If the responder ID is not a name but a hash, this function will return
31       zero and the  dn elements will be set to NULL.
32
33       The caller needs to deallocate memory by calling gnutls_free() on
34        dn ->data.
35
36       When the flag GNUTLS_X509_DN_FLAG_COMPAT is specified, the output  for‐
37       mat  will  match  the  format  output  by previous to 3.5.6 versions of
38       GnuTLS which was not not fully RFC4514-compliant.
39

RETURNS

41       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative  er‐
42       ror  code  is  returned. When no data exist it will return GNUTLS_E_RE‐
43       QUESTED_DATA_NOT_AVAILABLE.
44

REPORTING BUGS

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

SEE ALSO

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