Recursively dump a DER ASN.1 structure to a BIO, optionally hex‐dumping string contents.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_parse_dump(
    BIO* bp,
    unsigned char const* pp,
    long len,
    int indent,
    int dump);

Return Value

1 on success, or 0 on parse error.

Parameters

Name

Description

bp

BIO that receives the human‐readable parse tree.

pp

DER encoding to parse.

len

Number of bytes at pp.

indent

Indentation depth in spaces for the top‐level element.

dump

If nonzero, print hex dumps of OCTET STRING and similar contents.

Created with MrDocs