aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-04-08 18:16:05 +0000
committerng0 <ng0@n0.is>2019-04-08 18:16:05 +0000
commitffac5413332ec2e0bbd261b60589d7bc5a051e8b (patch)
tree7a4e04ed68324bcdb533e013825229a2f3babe3a
parent9f18ec58bc3fbba26221fc6d844d5b9f524c3aff (diff)
Refactor for GNUNET_memcmp
-rw-r--r--src/exchange/taler-exchange-httpd_keystate.c10
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",