Refactor test_exchangedb_auditors for GNUNET_memcmp

This commit is contained in:
ng0 2019-04-10 20:49:11 +00:00
parent b7b53da061
commit f54d6294b9
No known key found for this signature in database
GPG Key ID: E22F9BBFEE348588

View File

@ -78,30 +78,26 @@ auditor_cb (void *cls,
GNUNET_break (0);
return GNUNET_SYSERR;
}
if (0 != memcmp (&want_apub,
apub,
sizeof (struct TALER_AuditorPublicKeyP)))
if (0 != GNUNET_memcmp (&want_apub,
apub))
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
if (0 != memcmp (&want_mpub,
mpub,
sizeof (struct TALER_MasterPublicKeyP)))
if (0 != GNUNET_memcmp (&want_mpub,
mpub))
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
if (0 != memcmp (&want_asigs,
asigs,
sizeof (struct TALER_AuditorSignatureP)))
if (0 != GNUNET_memcmp (&want_asigs,
asigs))
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
if (0 != memcmp (&want_dki,
dki,
sizeof (struct TALER_DenominationKeyValidityPS)))
if (0 != GNUNET_memcmp (&want_dki,
dki))
{
GNUNET_break (0);
return GNUNET_SYSERR;