Commit 30e96c77 authored by Francis Dupont's avatar Francis Dupont
Browse files

bcmp -> memcmp

parent 1f33a989
......@@ -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 */
......
......@@ -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));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment