[#OCSP_single_get0_status]
= OCSP&lowbar;single&lowbar;get0&lowbar;status
:mrdocs:

Extract certificate status and related times from a SingleResponse&period;

== Synopsis

Declared in `&lt;openssl&sol;ocsp&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;single&lowbar;get0&lowbar;status(
    xref:OCSP_SINGLERESP.adoc[OCSP&lowbar;SINGLERESP]* single,
    int* reason,
    xref:ASN1_GENERALIZEDTIME.adoc[ASN1&lowbar;GENERALIZEDTIME]** revtime,
    xref:ASN1_GENERALIZEDTIME.adoc[ASN1&lowbar;GENERALIZEDTIME]** thisupd,
    xref:ASN1_GENERALIZEDTIME.adoc[ASN1&lowbar;GENERALIZEDTIME]** nextupd);
----

== Return Value

OCSP&lowbar;CERTIFICATESTATUS&lowbar;&ast; value (GOOD, REVOKED, or UNKNOWN)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *single*
| SingleResponse to query&period;
| *reason*
| Optional output for the revocation reason when status is revoked&semi; may be NULL&period;
| *revtime*
| Optional output for the revocation time when status is revoked&semi; may be NULL&period;
| *thisupd*
| Optional output for thisUpdate&semi; may be NULL&period;
| *nextupd*
| Optional output for nextUpdate&semi; may be NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
