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

Name

Description

out

Destination BIO.

indent

Number of spaces to prefix the first line (and continuation lines as needed).

width

Maximum number of hex octets per line before wrapping (0 for no wrap).

data

Bytes to format.

datalen

Number of bytes at data.

Created with MrDocs