| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_ocsp_resp_import2} (gnutls_ocsp_resp_t @var{resp}, const gnutls_datum_t * @var{data}, gnutls_x509_crt_fmt_t @var{fmt}) |
| 6 |
@var{resp}: The data to store the parsed response. |
| 7 |
|
| 8 |
@var{data}: DER or PEM encoded OCSP response. |
| 9 |
|
| 10 |
@var{fmt}: DER or PEM |
| 11 |
|
| 12 |
This function will convert the given OCSP response to |
| 13 |
the native @code{gnutls_ocsp_resp_t} format. It also decodes the Basic |
| 14 |
OCSP Response part, if any. The output will be stored in @code{resp} . |
| 15 |
|
| 16 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 17 |
negative error value. |
| 18 |
|
| 19 |
@strong{Since:} 3.6.3 |
| 20 |
@end deftypefun |