[#OCSP_resp_get0]
= OCSP&lowbar;resp&lowbar;get0
:mrdocs:

Return the SingleResponse at index `idx` in 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;resp&lowbar;get0(
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* bs,
    int idx);
----

== Return Value

Internal OCSP&lowbar;SINGLERESP pointer, or NULL if `bs` is NULL or `idx` is out of range&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bs*
| Basic OCSP response to query&period;
| *idx*
| Zero&hyphen;based index into the responses sequence&period;
|===


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