[#OCSP_resp_find]
= OCSP&lowbar;resp&lowbar;find
:mrdocs:

Find the next SingleResponse whose CertID matches `id&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;resp&lowbar;find(
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* bs,
    xref:OCSP_CERTID.adoc[OCSP&lowbar;CERTID]* id,
    int last);
----

== Return Value

Index of the matching SingleResponse, or &hyphen;1 if not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bs*
| Basic OCSP response to search&period;
| *id*
| CertID identifying the certificate of interest&period;
| *last*
| Index after which to search, or &hyphen;1 to start from the beginning&period;
|===


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