[#ASN1_d2i_bio]
= ASN1&lowbar;d2i&lowbar;bio
:mrdocs:

Decode an ASN&period;1 value from a BIO using allocator and d2i callbacks&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
ASN1&lowbar;d2i&lowbar;bio(
    void*(* xnew)(),
    xref:d2i_of_void.adoc[d2i&lowbar;of&lowbar;void]* d2i,
    xref:BIO.adoc[BIO]* in,
    void** x);
----

== Return Value

Decoded object pointer, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *xnew*
| Allocator returning a new empty object (for example TYPE&lowbar;new)&period;
| *d2i*
| Decoder of type d2i&lowbar;of&lowbar;void that parses DER into the object&period;
| *in*
| BIO positioned at DER (or BER) encoding&period;
| *x*
| Optional destination pointer updated to the decoded object, or NULL&period;
|===


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