summaryrefslogtreecommitdiff
path: root/src/mint-lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-19 22:24:02 +0200
committerChristian Grothoff <christian@grothoff.org>2015-06-19 22:24:02 +0200
commit2c1db3ea04c9628aa8c57cab1fe635321090f0d4 (patch)
tree4d7ba98954b7884863007bbe3fb15f8d3630fa71 /src/mint-lib
parent113dee90a9454c6eec4d088e433968688de2d685 (diff)
downloadexchange-2c1db3ea04c9628aa8c57cab1fe635321090f0d4.tar.gz
exchange-2c1db3ea04c9628aa8c57cab1fe635321090f0d4.tar.bz2
exchange-2c1db3ea04c9628aa8c57cab1fe635321090f0d4.zip
fix struct used in size calc for key signing
Diffstat (limited to 'src/mint-lib')
-rw-r--r--src/mint-lib/mint_api_handle.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mint-lib/mint_api_handle.c b/src/mint-lib/mint_api_handle.c
index 1ce18569b..13a6a68eb 100644
--- a/src/mint-lib/mint_api_handle.c
+++ b/src/mint-lib/mint_api_handle.c
@@ -458,10 +458,12 @@ parse_json_denomkey (struct TALER_MINT_DenomPublicKey *denom_key,
EXITIF (GNUNET_SYSERR == parse_json_amount (obj, &fee_deposit));
EXITIF (NULL == (obj = json_object_get (denom_key_obj, "fee_refresh")));
EXITIF (GNUNET_SYSERR == parse_json_amount (obj, &fee_refresh));
- denom_key_issue.purpose.purpose = htonl (TALER_SIGNATURE_MASTER_DENOMINATION_KEY_VALIDITY);
- denom_key_issue.purpose.size = htonl
- (sizeof (struct TALER_DenominationKeyValidityPS) -
- offsetof (struct TALER_DenominationKeyValidityPS, purpose));
+ denom_key_issue.purpose.purpose
+ = htonl (TALER_SIGNATURE_MASTER_DENOMINATION_KEY_VALIDITY);
+ denom_key_issue.purpose.size
+ = htonl (sizeof (struct TALER_DenominationKeyValidityPS) -
+ offsetof (struct TALER_DenominationKeyValidityPS,
+ purpose));
denom_key_issue.master = *master_key;
denom_key_issue.start = GNUNET_TIME_absolute_hton (valid_from);
denom_key_issue.expire_withdraw = GNUNET_TIME_absolute_hton (withdraw_valid_until);