refactor util/test_crypto.c for GNUNET_memcmp

This commit is contained in:
ng0 2019-04-08 13:26:43 +00:00
parent 79dcb72760
commit d55c2acbd5
No known key found for this signature in database
GPG Key ID: E22F9BBFEE348588

View File

@ -60,16 +60,14 @@ test_high_level ()
&coin_pub,
&secret2);
GNUNET_assert (0 ==
memcmp (&secret,
&secret2,
sizeof (secret)));
GNUNET_memcmp (&secret,
&secret2));
TALER_link_recover_transfer_secret (&trans_pub,
&coin_priv,
&secret2);
GNUNET_assert (0 ==
memcmp (&secret,
&secret2,
sizeof (secret)));
GNUNET_memcmp (&secret,
&secret2));
TALER_planchet_setup_refresh (&secret,
0,
&fc1);
@ -77,9 +75,8 @@ test_high_level ()
1,
&fc2);
GNUNET_assert (0 !=
memcmp (&fc1,
&fc2,
sizeof (struct TALER_PlanchetSecretsP)));
GNUNET_memcmp (&fc1,
&fc2));
return 0;
}