ASN1_parse

Recursively dump a DER ASN.1 structure to a BIO as indented text.

Synopsis

Declared in <openssl/asn1.h>

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

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.