Refactor lib/exchange_api_common.c for GNUNET_memcmp

This commit is contained in:
ng0 2019-04-08 18:48:33 +00:00
parent b669f0dfae
commit 8c591b4f1a
No known key found for this signature in database
GPG Key ID: E22F9BBFEE348588

View File

@ -342,9 +342,8 @@ TALER_EXCHANGE_get_exchange_signing_key_info (const struct TALER_EXCHANGE_Keys *
const struct TALER_EXCHANGE_SigningPublicKey *spk; const struct TALER_EXCHANGE_SigningPublicKey *spk;
spk = &keys->sign_keys[i]; spk = &keys->sign_keys[i];
if (0 == memcmp (exchange_pub, if (0 == GNUNET_memcmp (exchange_pub,
&spk->key, &spk->key))
sizeof (struct TALER_ExchangePublicKeyP)))
return spk; return spk;
} }
return NULL; return NULL;