From: Francis Dupont Date: Wed, 17 Jan 2018 14:31:33 +0000 (+0100) Subject: bcmp -> memcmp X-Git-Tag: v9.13.0~259 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=30e96c77097e8f28c45c502e5c64358e136e08a1;p=thirdparty%2Fbind9.git bcmp -> memcmp --- diff --git a/lib/isc/md5.c b/lib/isc/md5.c index d7f79948d98..d2ccccfa179 100644 --- a/lib/isc/md5.c +++ b/lib/isc/md5.c @@ -374,7 +374,7 @@ isc_md5_check(isc_boolean_t testing) { /* * Must return true in standard case, should return false for testing. */ - return (ISC_TF(bcmp(digest, expected, ISC_MD5_DIGESTLENGTH) == 0)); + return (ISC_TF(memcmp(digest, expected, ISC_MD5_DIGESTLENGTH) == 0)); } #else /* !PK11_MD5_DISABLE */ diff --git a/lib/isc/sha1.c b/lib/isc/sha1.c index aa317c4de15..ca39098a66b 100644 --- a/lib/isc/sha1.c +++ b/lib/isc/sha1.c @@ -445,5 +445,5 @@ isc_sha1_check(isc_boolean_t testing) { /* * Must return true in standard case, should return false for testing. */ - return (ISC_TF(bcmp(digest, expected, ISC_SHA1_DIGESTLENGTH) == 0)); + return (ISC_TF(memcmp(digest, expected, ISC_SHA1_DIGESTLENGTH) == 0)); }