[#ASN1_item_i2d_bio]
= ASN1&lowbar;item&lowbar;i2d&lowbar;bio
:mrdocs:

Encode an ASN&period;1 value to DER and write it to a BIO using an ASN1&lowbar;ITEM&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;item&lowbar;i2d&lowbar;bio(
    xref:ASN1_ITEM.adoc[ASN1&lowbar;ITEM] const* it,
    xref:BIO.adoc[BIO]* out,
    void const* x);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *it*
| Item descriptor identifying the type of `x&period;`
| *out*
| BIO that receives the DER encoding&period;
| *x*
| Value to encode&semi; must match the type described by `it&period;`
|===


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