Blame doc/functions/gnutls_ocsp_resp_get_responder2

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_ocsp_resp_get_responder2} (gnutls_ocsp_resp_const_t @var{resp}, gnutls_datum_t * @var{dn}, unsigned @var{flags})
Packit Service 4684c1
@var{resp}: should contain a @code{gnutls_ocsp_resp_t}  type
Packit Service 4684c1
Packit Service 4684c1
@var{dn}: newly allocated buffer with name
Packit Service 4684c1
Packit Service 4684c1
@var{flags}: zero or @code{GNUTLS_X509_DN_FLAG_COMPAT} 
Packit Service 4684c1
Packit Service 4684c1
This function will extract the name of the Basic OCSP Response in
Packit Service 4684c1
the provided buffer. The name will be in the form
Packit Service 4684c1
"C=xxxx,O=yyyy,CN=zzzz" as described in RFC2253. The output string
Packit Service 4684c1
will be ASCII or UTF-8 encoded, depending on the certificate data.
Packit Service 4684c1
Packit Service 4684c1
If the responder ID is not a name but a hash, this function
Packit Service 4684c1
will return zero and the  @code{dn} elements will be set to @code{NULL} .
Packit Service 4684c1
Packit Service 4684c1
The caller needs to deallocate memory by calling @code{gnutls_free()}  on
Packit Service 4684c1
 @code{dn} ->data.
Packit Service 4684c1
Packit Service 4684c1
When the flag @code{GNUTLS_X509_DN_FLAG_COMPAT}  is specified, the output
Packit Service 4684c1
format will match the format output by previous to 3.5.6 versions of GnuTLS
Packit Service 4684c1
which was not not fully RFC4514-compliant.
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit Service 4684c1
negative error code is returned. When no data exist it will return
Packit Service 4684c1
@code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} .
Packit Service 4684c1
@end deftypefun