Refactor for GNUNET_memcmp

This commit is contained in:
ng0 2019-04-17 18:13:14 +00:00
parent a02af1f505
commit c1d6806b57
No known key found for this signature in database
GPG Key ID: E22F9BBFEE348588

View File

@ -163,9 +163,8 @@ denomkeys_iter (void *cls,
}
GNUNET_CRYPTO_rsa_public_key_hash (dki->denom_pub.rsa_public_key,
&hc);
if (0 != memcmp (&hc,
&dki->issue.properties.denom_hash,
sizeof (struct GNUNET_HashCode)))
if (0 != GNUNET_memcmp (&hc,
&dki->issue.properties.denom_hash))
{
fprintf (stderr,
"Public key for `%s' does not match signature\n",