1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
@deftypefun {int} {gnutls_ocsp_resp_get_responder} (gnutls_ocsp_resp_t @var{resp}, gnutls_datum_t * @var{dn})
@var{resp}: should contain a @code{gnutls_ocsp_resp_t} structure
@var{dn}: newly allocated buffer with name
This function will extract the name of the Basic OCSP Response in
the provided buffer. The name will be in the form
"C=xxxx,O=yyyy,CN=zzzz" as described in RFC2253. The output string
will be ASCII or UTF-8 encoded, depending on the certificate data.
The caller needs to deallocate memory by calling @code{gnutls_free()} on
@code{dn} ->data.
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
negative error code is returned.
@end deftypefun
|