ASN1_buf_print

Print a byte buffer as colon-separated hex to a BIO with indentation.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_buf_print(
    BIO* bp,
    unsigned char const* buf,
    size_t buflen,
    int off);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
bpBIO that receives the formatted output.
bufBytes to print.
buflenNumber of bytes at buf.
offIndentation depth in spaces.