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

Synopsis

Declared in <openssl/asn1.h>

void*
ASN1_item_d2i_bio(
    ASN1_ITEM const* it,
    BIO* in,
    void* pval);

Return Value

Decoded object pointer, or NULL on error.

Parameters

Name

Description

it

ASN.1 item describing the type to decode.

in

BIO positioned at DER input.

pval

Optional existing object to reuse, or NULL to allocate.

Created with MrDocs