ASN1_parse_dump

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

NameDescription
bpBIO that receives the human-readable parse tree.
ppDER encoding to parse.
lenNumber of bytes at pp.
indentIndentation depth in spaces for the top-level element.
dumpIf nonzero, print hex dumps of OCTET STRING and similar contents.