Find a SingleResponse for id and return its certificate status fields.
Synopsis
Declared in <openssl/ocsp.h>
int
OCSP_resp_find_status(
OCSP_BASICRESP* bs,
OCSP_CERTID* id,
int* status,
int* reason,
ASN1_GENERALIZEDTIME** revtime,
ASN1_GENERALIZEDTIME** thisupd,
ASN1_GENERALIZEDTIME** nextupd);
Return Value
Index of the matching SingleResponse, or ‐1 if not found.
Parameters
Name |
Description |
bs |
Basic OCSP response to search. |
id |
CertID identifying the certificate of interest. |
status |
Receives OCSP_CERTIFICATESTATUS_* (for example GOOD, REVOKED, UNKNOWN). |
reason |
Optional revocation reason code when status is revoked; may be NULL. |
revtime |
Optional revocation time when status is revoked; may be NULL. |
thisupd |
Optional thisUpdate time from the SingleResponse; may be NULL. |
nextupd |
Optional nextUpdate time from the SingleResponse; may be NULL. |
Created with MrDocs