[#OCSP_REQUEST_get_ext]
= OCSP&lowbar;REQUEST&lowbar;get&lowbar;ext
:mrdocs:

Return the OCSP request extension at index `loc&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:X509_EXTENSION.adoc[X509&lowbar;EXTENSION]*
OCSP&lowbar;REQUEST&lowbar;get&lowbar;ext(
    xref:OCSP_REQUEST.adoc[OCSP&lowbar;REQUEST]* x,
    int loc);
----

== Return Value

Internal X509&lowbar;EXTENSION pointer, or NULL if `loc` is out of range&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| OCSP request to query&period;
| *loc*
| Zero&hyphen;based extension index&period;
|===


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