ASN1_bn_print

Print a labeled BIGNUM to a BIO in hex, with indentation.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_bn_print(
    BIO* bp,
    char const* number,
    BIGNUM const* num,
    unsigned char* buf,
    int off);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
bpBIO that receives the formatted output.
numberLabel printed before the value (for example a field name).
numBig integer to print; NULL prints nothing and returns success.
bufUnused historical parameter (ignored; may be NULL).
offIndentation depth in spaces.