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

Name

Description

bp

BIO that receives the formatted output.

number

Label printed before the value (for example a field name).

num

Big integer to print; NULL prints nothing and returns success.

buf

Unused historical parameter (ignored; may be NULL).

off

Indentation depth in spaces.

Created with MrDocs