| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@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}) |
| 6 |
@var{resp}: should contain a @code{gnutls_ocsp_resp_t} type |
| 7 |
|
| 8 |
@var{indx}: Specifies response number to get. Use (0) to get the first one. |
| 9 |
|
| 10 |
@var{digest}: output variable with @code{gnutls_digest_algorithm_t} hash algorithm |
| 11 |
|
| 12 |
@var{issuer_name_hash}: output buffer with hash of issuer's DN |
| 13 |
|
| 14 |
@var{issuer_key_hash}: output buffer with hash of issuer's public key |
| 15 |
|
| 16 |
@var{serial_number}: output buffer with serial number of certificate to check |
| 17 |
|
| 18 |
@var{cert_status}: a certificate status, a @code{gnutls_ocsp_cert_status_t} enum. |
| 19 |
|
| 20 |
@var{this_update}: time at which the status is known to be correct. |
| 21 |
|
| 22 |
@var{next_update}: when newer information will be available, or (time_t)-1 if unspecified |
| 23 |
|
| 24 |
@var{revocation_time}: when @code{cert_status} is @code{GNUTLS_OCSP_CERT_REVOKED} , holds time of revocation. |
| 25 |
|
| 26 |
@var{revocation_reason}: revocation reason, a @code{gnutls_x509_crl_reason_t} enum. |
| 27 |
|
| 28 |
This function will return the certificate information of the |
| 29 |
@code{indx} 'ed response in the Basic OCSP Response @code{resp} . The |
| 30 |
information returned corresponds to the OCSP SingleResponse structure |
| 31 |
except the final singleExtensions. |
| 32 |
|
| 33 |
Each of the pointers to output variables may be NULL to indicate |
| 34 |
that the caller is not interested in that value. |
| 35 |
|
| 36 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 37 |
negative error code is returned. If you have reached the last |
| 38 |
CertID available @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} will be |
| 39 |
returned. |
| 40 |
@end deftypefun |