[#ASN1_bn_print]
= ASN1&lowbar;bn&lowbar;print
:mrdocs:

Print a labeled BIGNUM to a BIO in hex, with indentation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASN1&lowbar;bn&lowbar;print(
    xref:BIO.adoc[BIO]* bp,
    char const* number,
    xref:BIGNUM.adoc[BIGNUM] const* num,
    unsigned char* buf,
    int off);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bp*
| BIO that receives the formatted output&period;
| *number*
| Label printed before the value (for example a field name)&period;
| *num*
| Big integer to print&semi; NULL prints nothing and returns success&period;
| *buf*
| Unused historical parameter (ignored&semi; may be NULL)&period;
| *off*
| Indentation depth in spaces&period;
|===


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