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

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.

Created with MrDocs