Refactor for GNUNET_memcmp

This commit is contained in:
ng0 2019-04-08 18:16:05 +00:00
parent 9f18ec58bc
commit ffac541333
No known key found for this signature in database
GPG Key ID: E22F9BBFEE348588

View File

@ -720,9 +720,8 @@ reload_keys_denom_iter (void *cls,
alias); alias);
return GNUNET_OK; return GNUNET_OK;
} }
if (0 != memcmp (&dki->issue.properties.master, if (0 != GNUNET_memcmp (&dki->issue.properties.master,
&TEH_master_public_key, &TEH_master_public_key))
sizeof (struct TALER_MasterPublicKeyP)))
{ {
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Master key in denomination key file `%s' does not match! Skipping it.\n", "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; return GNUNET_OK;
} }
if (0 != memcmp (&ski->issue.master_public_key, if (0 != GNUNET_memcmp (&ski->issue.master_public_key,
&TEH_master_public_key, &TEH_master_public_key))
sizeof (struct TALER_MasterPublicKeyP)))
{ {
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Master key in signing key file `%s' does not match! Skipping it.\n", "Master key in signing key file `%s' does not match! Skipping it.\n",