[#OCSP_SINGLERESP_get_ext_by_critical]
= OCSP&lowbar;SINGLERESP&lowbar;get&lowbar;ext&lowbar;by&lowbar;critical
:mrdocs:

Find the next SingleResponse extension with criticality `crit&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;SINGLERESP&lowbar;get&lowbar;ext&lowbar;by&lowbar;critical(
    xref:OCSP_SINGLERESP.adoc[OCSP&lowbar;SINGLERESP]* x,
    int crit,
    int lastpos);
----

== Return Value

Extension index, or &hyphen;1 if not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| SingleResponse whose extensions are searched&period;
| *crit*
| Nonzero to match critical extensions, zero for non&hyphen;critical&period;
| *lastpos*
| Index after which to search, or &hyphen;1 to start from the beginning&period;
|===


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