Blame doc/functions/gnutls_ocsp_resp_get_responder_raw_id

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit Service 991b93
@deftypefun {int} {gnutls_ocsp_resp_get_responder_raw_id} (gnutls_ocsp_resp_const_t @var{resp}, unsigned @var{type}, gnutls_datum_t * @var{raw})
Packit aea12f
@var{resp}: should contain a @code{gnutls_ocsp_resp_t}  type
Packit aea12f
Packit aea12f
@var{type}: should be @code{GNUTLS_OCSP_RESP_ID_KEY}  or @code{GNUTLS_OCSP_RESP_ID_DN} 
Packit aea12f
Packit aea12f
@var{raw}: newly allocated buffer with the raw ID
Packit aea12f
Packit aea12f
This function will extract the raw key (or DN) ID of the Basic OCSP Response in
Packit aea12f
the provided buffer. If the responder ID is not a key ID then
Packit aea12f
this function will return @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} .
Packit aea12f
Packit aea12f
The caller needs to deallocate memory by calling @code{gnutls_free()}  on
Packit aea12f
 @code{dn} ->data.
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error code is returned.
Packit aea12f
@end deftypefun