|
NAMEBIO_dump , BIO_dump_indent ,
BIO_dump_fp ,
BIO_dump_indent_fp —
hexadecimal printout of arbitrary byte arrays
SYNOPSIS#include <openssl/bio.h>
int
int
int
int
DESCRIPTIONBIO_dump () prints len bytes
starting at s to bio in
hexadecimal format.
The first column of output contains the index, in the byte array starting at s, of the first byte shown on the respective output line, expressed as a four-digit hexadecimal number starting at 0000, followed by a dash. After the dash, sixteen bytes of data are printed as two-digit hexadecimal numbers, respecting the order in which they appear in the array s. Another dash is printed after the eighth column. To the right of the hexadecimal representation of the bytes, the same bytes are printed again, this time as ASCII characters. Non-printable ASCII characters are replaced with dots. Trailing space characters and NUL bytes are omitted from the main table. If there are any, an additional line is printed, consisting of the len argument as a four-digit hexadecimal number, a dash, and the fixed string “<SPACES/NULS>”.
RETURN VALUESOn success these functions return the total number of bytes written by BIO_write(3) or fwrite(3). If a failure occurs at any point when writing, these functions will stop after having potentially written out partial results, and return -1.SEE ALSOhexdump(1), BIO_new(3), BIO_write(3)HISTORYBIO_dump () first appeared in SSLeay 0.6.5 and has been
available since OpenBSD 2.4.
Visit the GSP FreeBSD Man Page Interface. |