[#OCSP_basic_add1_status]
= OCSP&lowbar;basic&lowbar;add1&lowbar;status
:mrdocs:

Append a SingleResponse with certificate status to a basic OCSP response&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OCSP_SINGLERESP.adoc[OCSP&lowbar;SINGLERESP]*
OCSP&lowbar;basic&lowbar;add1&lowbar;status(
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* rsp,
    xref:OCSP_CERTID.adoc[OCSP&lowbar;CERTID]* cid,
    int status,
    int reason,
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]* revtime,
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]* thisupd,
    xref:ASN1_TIME.adoc[ASN1&lowbar;TIME]* nextupd);
----

== Return Value

Internal OCSP&lowbar;SINGLERESP pointer on success, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rsp*
| Basic response being constructed&period;
| *cid*
| CertID identifying the certificate (ownership transferred on success)&period;
| *status*
| OCSP&lowbar;CERTIFICATESTATUS&lowbar;&ast; value for the response&period;
| *reason*
| Revocation reason when `status` is revoked&semi; otherwise ignored&period;
| *revtime*
| Revocation time when `status` is revoked&semi; otherwise may be NULL&period;
| *thisupd*
| thisUpdate time for the SingleResponse&period;
| *nextupd*
| Optional nextUpdate time, or NULL&period;
|===


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