[#OCSP_BASICRESP_add1_ext_i2d]
= OCSP&lowbar;BASICRESP&lowbar;add1&lowbar;ext&lowbar;i2d
:mrdocs:

Encode `value` as a basic&hyphen;response extension of type `nid` and append it&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OCSP&lowbar;BASICRESP&lowbar;add1&lowbar;ext&lowbar;i2d(
    xref:OCSP_BASICRESP.adoc[OCSP&lowbar;BASICRESP]* x,
    int nid,
    void* value,
    int crit,
    unsigned long flags);
----

== Return Value

1 on success, 0 on error, or &hyphen;1 on a fatal error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| Basic OCSP response to update&period;
| *nid*
| NID of the extension type to add&period;
| *value*
| Native extension structure encoded via i2d&period;
| *crit*
| Nonzero to mark the extension critical&period;
| *flags*
| X509V3&lowbar;ADD&lowbar;&ast; flags controlling replacement behaviour&period;
|===


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