-consistency

This commit is contained in:
Christian Grothoff 2023-05-09 23:52:57 +02:00
parent dc5b0fb0d3
commit 4e79967f9b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1005,9 +1005,9 @@ TALER_exchange_offline_global_fee_sign (
const struct TALER_MasterPrivateKeyP *master_priv, const struct TALER_MasterPrivateKeyP *master_priv,
struct TALER_MasterSignatureP *master_sig) struct TALER_MasterSignatureP *master_sig)
{ {
struct TALER_MasterGlobalFeePS kv = { struct TALER_MasterGlobalFeePS wf = {
.purpose.purpose = htonl (TALER_SIGNATURE_MASTER_GLOBAL_FEES), .purpose.purpose = htonl (TALER_SIGNATURE_MASTER_GLOBAL_FEES),
.purpose.size = htonl (sizeof (kv)), .purpose.size = htonl (sizeof (wf)),
.start_date = GNUNET_TIME_timestamp_hton (start_time), .start_date = GNUNET_TIME_timestamp_hton (start_time),
.end_date = GNUNET_TIME_timestamp_hton (end_time), .end_date = GNUNET_TIME_timestamp_hton (end_time),
.purse_timeout = GNUNET_TIME_relative_hton (purse_timeout), .purse_timeout = GNUNET_TIME_relative_hton (purse_timeout),
@ -1015,10 +1015,10 @@ TALER_exchange_offline_global_fee_sign (
.purse_account_limit = htonl (purse_account_limit) .purse_account_limit = htonl (purse_account_limit)
}; };
TALER_global_fee_set_hton (&kv.fees, TALER_global_fee_set_hton (&wf.fees,
fees); fees);
GNUNET_CRYPTO_eddsa_sign (&master_priv->eddsa_priv, GNUNET_CRYPTO_eddsa_sign (&master_priv->eddsa_priv,
&kv, &wf,
&master_sig->eddsa_signature); &master_sig->eddsa_signature);
} }