| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_ocsp_resp_get_response} (gnutls_ocsp_resp_const_t @var{resp}, gnutls_datum_t * @var{response_type_oid}, gnutls_datum_t * @var{response}) |
| 6 |
@var{resp}: should contain a @code{gnutls_ocsp_resp_t} type |
| 7 |
|
| 8 |
@var{response_type_oid}: newly allocated output buffer with response type OID |
| 9 |
|
| 10 |
@var{response}: newly allocated output buffer with DER encoded response |
| 11 |
|
| 12 |
This function will extract the response type OID in and the |
| 13 |
response data from an OCSP response. Normally the |
| 14 |
@code{response_type_oid} is always "1.3.6.1.5.5.7.48.1.1" which means the |
| 15 |
@code{response} should be decoded as a Basic OCSP Response, but |
| 16 |
technically other response types could be used. |
| 17 |
|
| 18 |
This function is typically only useful when you want to extract the |
| 19 |
response type OID of an response for diagnostic purposes. |
| 20 |
Otherwise @code{gnutls_ocsp_resp_import()} will decode the basic OCSP |
| 21 |
response part and the caller need not worry about that aspect. |
| 22 |
|
| 23 |
Since 3.7.0 @code{response_type_oid} ->size does not account for the terminating |
| 24 |
null byte. |
| 25 |
|
| 26 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 27 |
negative error value. |
| 28 |
@end deftypefun |