refactor for GNUnet_memcmp

This commit is contained in:
ng0 2019-04-23 18:03:16 +00:00
parent ddea1bf407
commit e1cf1a48af
No known key found for this signature in database
GPG Key ID: E22F9BBFEE348588

View File

@ -611,9 +611,8 @@ link_cb (void *cls,
for (unsigned int i=0;i<num_coins;i++) for (unsigned int i=0;i<num_coins;i++)
for (unsigned int j=0;j<num_coins;j++) for (unsigned int j=0;j<num_coins;j++)
{ {
if ( (0 == memcmp if ( (0 == GNUNET_memcmp
(&coin_privs[i], &fc[j].coin_priv, (&coin_privs[i], &fc[j].coin_priv)) &&
sizeof (struct TALER_CoinSpendPrivateKeyP))) &&
(0 == GNUNET_CRYPTO_rsa_signature_cmp (0 == GNUNET_CRYPTO_rsa_signature_cmp
(fc[i].sig.rsa_signature, (fc[i].sig.rsa_signature,
sigs[j].rsa_signature)) && sigs[j].rsa_signature)) &&