ASN1_item_print

Pretty-print an ASN.1 value described by it to a BIO.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_item_print(
    BIO* out,
    ASN1_VALUE const* ifld,
    int indent,
    ASN1_ITEM const* it,
    ASN1_PCTX const* pctx);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
outOutput BIO.
ifldValue to print (typed according to it).
indentInitial indentation depth in spaces.
itASN.1 item descriptor for the type of ifld.
pctxPrint context with ASN1_PCTX_FLAGS_*, or NULL for defaults.