ASN1_item_d2i_bio_ex

Decode an ASN.1 value described by it from a BIO, with library context.

Synopsis

Declared in <openssl/asn1.h>

void*
ASN1_item_d2i_bio_ex(
    ASN1_ITEM const* it,
    BIO* in,
    void* pval,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

Decoded object pointer, or NULL on error.

Parameters

NameDescription
itASN.1 item describing the type to decode.
inBIO positioned at DER input.
pvalOptional existing object to reuse, or NULL to allocate.
libctxLibrary context for algorithm fetches during decode, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.