[#ASN1_item_d2i_fp_ex]
= ASN1&lowbar;item&lowbar;d2i&lowbar;fp&lowbar;ex
:mrdocs:

Decode an ASN&period;1 value described by `it` from a FILE, with library context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void*
ASN1&lowbar;item&lowbar;d2i&lowbar;fp&lowbar;ex(
    xref:ASN1_ITEM.adoc[ASN1&lowbar;ITEM] const* it,
    FILE* in,
    void* x,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq);
----

== Return Value

Decoded object pointer, or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *it*
| ASN&period;1 item describing the type to decode&period;
| *in*
| Open FILE positioned at DER input&period;
| *x*
| Optional existing object to reuse, or NULL to allocate&period;
| *libctx*
| Library context for algorithm fetches during decode, or NULL for the default&period;
| *propq*
| Property query for algorithm fetches, or NULL&period;
|===


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