[#OCSP_sendreq_new]
= OCSP&lowbar;sendreq&lowbar;new
:mrdocs:

Create a non&hyphen;blocking HTTP request context for an OCSP exchange&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OSSL_HTTP_REQ_CTX.adoc[OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX]*
OCSP&lowbar;sendreq&lowbar;new(
    xref:BIO.adoc[BIO]* io,
    char const* path,
    xref:OCSP_REQUEST.adoc[OCSP&lowbar;REQUEST] const* req,
    int buf&lowbar;size);
----

== Return Value

New OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX, or NULL on error&semi; free with OSSL&lowbar;HTTP&lowbar;REQ&lowbar;CTX&lowbar;free()&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *io*
| BIO connected to the OCSP responder&period;
| *path*
| HTTP request&hyphen;URI path for the OCSP service (for example &quot;&sol;&quot;)&period;
| *req*
| Optional OCSP request to send immediately, or NULL to set later&period;
| *buf&lowbar;size*
| I&sol;O buffer size hint, or 0 for the default&period;
|===


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