Blame doc/functions/gnutls_ocsp_resp_list_import2
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_ocsp_resp_list_import2} (gnutls_ocsp_resp_t ** @var{ocsps}, unsigned int * @var{size}, const gnutls_datum_t * @var{resp_data}, gnutls_x509_crt_fmt_t @var{format}, unsigned int @var{flags})
|
|
Packit Service |
4684c1 |
@var{ocsps}: Will hold the parsed OCSP response list.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{size}: It will contain the size of the list.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{resp_data}: The PEM encoded OCSP list.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{format}: One of @code{GNUTLS_X509_FMT_PEM} or @code{GNUTLS_X509_FMT_DER}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{flags}: must be (0) or an OR'd sequence of gnutls_certificate_import_flags.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will convert the given PEM encoded OCSP response list
|
|
Packit Service |
4684c1 |
to the native gnutls_ocsp_resp_t format. The output will be stored
|
|
Packit Service |
4684c1 |
in @code{ocsps} which will be allocated and initialized.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The OCSP responses should have a header of "OCSP RESPONSE".
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
To deinitialize responses, you need to deinitialize each @code{gnutls_ocsp_resp_t}
|
|
Packit Service |
4684c1 |
structure independently, and use @code{gnutls_free()} at @code{ocsps} .
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
In PEM files, when no OCSP responses are detected
|
|
Packit Service |
4684c1 |
@code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} will be returned.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} the number of responses read or a negative error value.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 3.6.3
|
|
Packit Service |
4684c1 |
@end deftypefun
|