[#OCSP_ONEREQ_add_ext]
= OCSP&lowbar;ONEREQ&lowbar;add&lowbar;ext
:mrdocs:

Insert extension `ex` into a single OCSP request at position `loc&period;`

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| Single OCSP request entry to update&period;
| *ex*
| Extension to add (duplicated into the request)&period;
| *loc*
| Insertion index, or &hyphen;1 to append&period;
|===


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