Blame doc/functions/gnutls_ocsp_resp_get_responder_raw_id
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@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 Service |
4684c1 |
@var{resp}: should contain a @code{gnutls_ocsp_resp_t} type
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{type}: should be @code{GNUTLS_OCSP_RESP_ID_KEY} or @code{GNUTLS_OCSP_RESP_ID_DN}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{raw}: newly allocated buffer with the raw ID
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will extract the raw key (or DN) ID of the Basic OCSP Response in
|
|
Packit Service |
4684c1 |
the provided buffer. If the responder ID is not a key ID then
|
|
Packit Service |
4684c1 |
this function will return @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} .
|
|
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 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
|
|
Packit Service |
4684c1 |
negative error code is returned.
|
|
Packit Service |
4684c1 |
@end deftypefun
|