ASN1_item_d2i_fp

Decode an ASN.1 value described by it from a FILE (default library context).

Synopsis

Declared in <openssl/asn1.h>

void*
ASN1_item_d2i_fp(
    ASN1_ITEM const* it,
    FILE* in,
    void* x);

Return Value

Decoded object pointer, or NULL on error.

Parameters

NameDescription
itASN.1 item describing the type to decode.
inOpen FILE positioned at DER input.
xOptional existing object to reuse, or NULL to allocate.