crypto/bio/b_dump.c: change all char* to void*, and constify
authorRichard Levitte <levitte@openssl.org>
Wed, 12 Dec 2018 21:37:37 +0000 (22:37 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 16 Jan 2019 17:10:41 +0000 (18:10 +0100)
commit807989df56988da92560bce4706d91d7c1371783
treee83d684a33d0ef58ad916e37319f38d7c2192d24
parent5f40dd158cbfa0a3bd86c32f7a77fec8754bb245
crypto/bio/b_dump.c: change all char* to void*, and constify

Some of these functions take char*, which is seldom right, they should
have been unsigned char*, because the content isn't expected to be
text.

Even better is to simply take void* as data type, which also happens
to be transparent for any type these functions are called with, be it
char* or unsigned char*.  This shouldn't break anything.

While we're at it, constify the input data parameters.

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/7890)
crypto/bio/b_dump.c
include/openssl/bio.h