[#ASN1_parse_dump]
= ASN1&lowbar;parse&lowbar;dump
:mrdocs:

Recursively dump a DER ASN&period;1 structure to a BIO, optionally hex&hyphen;dumping string contents&period;

== Synopsis

Declared in `&lt;openssl&sol;asn1&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;parse&lowbar;dump(
    xref:BIO.adoc[BIO]* bp,
    unsigned char const* pp,
    long len,
    int indent,
    int dump);
----

== Return Value

1 on success, or 0 on parse error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bp*
| BIO that receives the human&hyphen;readable parse tree&period;
| *pp*
| DER encoding to parse&period;
| *len*
| Number of bytes at `pp&period;`
| *indent*
| Indentation depth in spaces for the top&hyphen;level element&period;
| *dump*
| If nonzero, print hex dumps of OCTET STRING and similar contents&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
