[#OCSP_sendreq_bio]
= OCSP&lowbar;sendreq&lowbar;bio
:mrdocs:

Send an OCSP request over HTTP via `b` and return the decoded 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;sendreq&lowbar;bio(
    xref:BIO.adoc[BIO]* b,
    char const* path,
    xref:OCSP_REQUEST.adoc[OCSP&lowbar;REQUEST]* req);
----

== 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
| *b*
| BIO connected to the OCSP responder (typically a connected socket BIO)&period;
| *path*
| HTTP request&hyphen;URI path for the OCSP service (for example &quot;&sol;&quot;)&period;
| *req*
| OCSP request to POST as application&sol;ocsp&hyphen;request&period;
|===


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