diff options
author | ng0 <ng0@n0.is> | 2019-04-08 18:16:05 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-04-08 18:16:05 +0000 |
commit | ffac5413332ec2e0bbd261b60589d7bc5a051e8b (patch) | |
tree | 7a4e04ed68324bcdb533e013825229a2f3babe3a | |
parent | 9f18ec58bc3fbba26221fc6d844d5b9f524c3aff (diff) |
Refactor for GNUNET_memcmp
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index 6cef785c4..901ab6fa6 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -720,9 +720,8 @@ reload_keys_denom_iter (void *cls, alias); return GNUNET_OK; } - if (0 != memcmp (&dki->issue.properties.master, - &TEH_master_public_key, - sizeof (struct TALER_MasterPublicKeyP))) + if (0 != GNUNET_memcmp (&dki->issue.properties.master, + &TEH_master_public_key)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Master key in denomination key file `%s' does not match! Skipping it.\n", @@ -903,9 +902,8 @@ reload_keys_sign_iter (void *cls, return GNUNET_OK; } - if (0 != memcmp (&ski->issue.master_public_key, - &TEH_master_public_key, - sizeof (struct TALER_MasterPublicKeyP))) + if (0 != GNUNET_memcmp (&ski->issue.master_public_key, + &TEH_master_public_key)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Master key in signing key file `%s' does not match! Skipping it.\n", |