refactor util/test_crypto.c for GNUNET_memcmp
This commit is contained in:
parent
79dcb72760
commit
d55c2acbd5
@ -60,16 +60,14 @@ test_high_level ()
|
|||||||
&coin_pub,
|
&coin_pub,
|
||||||
&secret2);
|
&secret2);
|
||||||
GNUNET_assert (0 ==
|
GNUNET_assert (0 ==
|
||||||
memcmp (&secret,
|
GNUNET_memcmp (&secret,
|
||||||
&secret2,
|
&secret2));
|
||||||
sizeof (secret)));
|
|
||||||
TALER_link_recover_transfer_secret (&trans_pub,
|
TALER_link_recover_transfer_secret (&trans_pub,
|
||||||
&coin_priv,
|
&coin_priv,
|
||||||
&secret2);
|
&secret2);
|
||||||
GNUNET_assert (0 ==
|
GNUNET_assert (0 ==
|
||||||
memcmp (&secret,
|
GNUNET_memcmp (&secret,
|
||||||
&secret2,
|
&secret2));
|
||||||
sizeof (secret)));
|
|
||||||
TALER_planchet_setup_refresh (&secret,
|
TALER_planchet_setup_refresh (&secret,
|
||||||
0,
|
0,
|
||||||
&fc1);
|
&fc1);
|
||||||
@ -77,9 +75,8 @@ test_high_level ()
|
|||||||
1,
|
1,
|
||||||
&fc2);
|
&fc2);
|
||||||
GNUNET_assert (0 !=
|
GNUNET_assert (0 !=
|
||||||
memcmp (&fc1,
|
GNUNET_memcmp (&fc1,
|
||||||
&fc2,
|
&fc2));
|
||||||
sizeof (struct TALER_PlanchetSecretsP)));
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user