Blame doc/functions/gnutls_ocsp_resp_get_single

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_ocsp_resp_get_single} (gnutls_ocsp_resp_const_t @var{resp}, unsigned @var{indx}, gnutls_digest_algorithm_t * @var{digest}, gnutls_datum_t * @var{issuer_name_hash}, gnutls_datum_t * @var{issuer_key_hash}, gnutls_datum_t * @var{serial_number}, unsigned int * @var{cert_status}, time_t * @var{this_update}, time_t * @var{next_update}, time_t * @var{revocation_time}, unsigned int * @var{revocation_reason})
Packit Service 4684c1
@var{resp}: should contain a @code{gnutls_ocsp_resp_t}  type
Packit Service 4684c1
Packit Service 4684c1
@var{indx}: Specifies response number to get. Use (0) to get the first one.
Packit Service 4684c1
Packit Service 4684c1
@var{digest}: output variable with @code{gnutls_digest_algorithm_t}  hash algorithm
Packit Service 4684c1
Packit Service 4684c1
@var{issuer_name_hash}: output buffer with hash of issuer's DN
Packit Service 4684c1
Packit Service 4684c1
@var{issuer_key_hash}: output buffer with hash of issuer's public key
Packit Service 4684c1
Packit Service 4684c1
@var{serial_number}: output buffer with serial number of certificate to check
Packit Service 4684c1
Packit Service 4684c1
@var{cert_status}: a certificate status, a @code{gnutls_ocsp_cert_status_t}  enum.
Packit Service 4684c1
Packit Service 4684c1
@var{this_update}: time at which the status is known to be correct.
Packit Service 4684c1
Packit Service 4684c1
@var{next_update}: when newer information will be available, or (time_t)-1 if unspecified
Packit Service 4684c1
Packit Service 4684c1
@var{revocation_time}: when  @code{cert_status} is @code{GNUTLS_OCSP_CERT_REVOKED} , holds time of revocation.
Packit Service 4684c1
Packit Service 4684c1
@var{revocation_reason}: revocation reason, a @code{gnutls_x509_crl_reason_t}  enum.
Packit Service 4684c1
Packit Service 4684c1
This function will return the certificate information of the
Packit Service 4684c1
 @code{indx} 'ed response in the Basic OCSP Response  @code{resp} .  The
Packit Service 4684c1
information returned corresponds to the OCSP SingleResponse structure
Packit Service 4684c1
except the final singleExtensions.
Packit Service 4684c1
Packit Service 4684c1
Each of the pointers to output variables may be NULL to indicate
Packit Service 4684c1
that the caller is not interested in that value.
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.  If you have reached the last
Packit Service 4684c1
CertID available @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}  will be
Packit Service 4684c1
returned.
Packit Service 4684c1
@end deftypefun