BIO_hex_string

Write datalen bytes from data as a colon-separated hex string to a BIO.

Synopsis

Declared in <openssl/bio.h>

int
BIO_hex_string(
    BIO* out,
    int indent,
    int width,
    void const* data,
    int datalen);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
outDestination BIO.
indentNumber of spaces to prefix the first line (and continuation lines as needed).
widthMaximum number of hex octets per line before wrapping (0 for no wrap).
dataBytes to format.
datalenNumber of bytes at data.