[#OCSP_resp_find_status] = OCSP_resp_find_status :mrdocs: Find a SingleResponse for `id` and return its certificate status fields. == Synopsis Declared in `<openssl/ocsp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OCSP_resp_find_status( xref:OCSP_BASICRESP.adoc[OCSP_BASICRESP]* bs, xref:OCSP_CERTID.adoc[OCSP_CERTID]* id, int* status, int* reason, xref:ASN1_GENERALIZEDTIME.adoc[ASN1_GENERALIZEDTIME]** revtime, xref:ASN1_GENERALIZEDTIME.adoc[ASN1_GENERALIZEDTIME]** thisupd, xref:ASN1_GENERALIZEDTIME.adoc[ASN1_GENERALIZEDTIME]** nextupd); ---- == Return Value Index of the matching SingleResponse, or ‐1 if not found. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#