[#OCSP_response_create]
= OCSP&lowbar;response&lowbar;create
:mrdocs:

Create an OCSP response with the given status and optional basic response&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OCSP_RESPONSE.adoc[OCSP&lowbar;RESPONSE]*
OCSP&lowbar;response&lowbar;create(
    int status,
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* bs);
----

== Return Value

Newly allocated OCSP&lowbar;RESPONSE, or NULL on error&semi; free with OCSP&lowbar;RESPONSE&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *status*
| OCSPResponseStatus value such as OCSP&lowbar;RESPONSE&lowbar;STATUS&lowbar;SUCCESSFUL&period;
| *bs*
| Optional BasicOCSPResponse to embed as responseBytes, or NULL for status&hyphen;only&period;
|===


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