diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_refresh.c')
-rw-r--r-- | src/mint/taler-mint-httpd_refresh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c index 5a9cf1eac..888e7de3b 100644 --- a/src/mint/taler-mint-httpd_refresh.c +++ b/src/mint/taler-mint-httpd_refresh.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <pthread.h> | 28 | #include <pthread.h> |
29 | #include "mint.h" | 29 | #include "mint.h" |
30 | #include "mint_db.h" | 30 | #include "mint_db.h" |
31 | #include "taler_types.h" | ||
32 | #include "taler_signatures.h" | 31 | #include "taler_signatures.h" |
33 | #include "taler_rsa.h" | 32 | #include "taler_rsa.h" |
34 | #include "taler_json_lib.h" | 33 | #include "taler_json_lib.h" |
@@ -152,10 +151,11 @@ refresh_accept_denoms (struct MHD_Connection *connection, | |||
152 | if (GNUNET_OK != res) | 151 | if (GNUNET_OK != res) |
153 | return res; | 152 | return res; |
154 | 153 | ||
155 | dki = TALER_MINT_get_denom_key (key_state, &denom_pub); | 154 | dki = &(TALER_MINT_get_denom_key (key_state, &denom_pub)->issue); |
156 | 155 | ||
157 | GNUNET_CRYPTO_hash_context_read (hash_context, | 156 | GNUNET_CRYPTO_hash_context_read (hash_context, |
158 | &denom_pub, sizeof (struct TALER_RSA_PublicKeyBinaryEncoded)); | 157 | &denom_pub, |
158 | sizeof (struct TALER_RSA_PublicKeyBinaryEncoded)); | ||
159 | 159 | ||
160 | cost = TALER_amount_add (TALER_amount_ntoh (dki->value), | 160 | cost = TALER_amount_add (TALER_amount_ntoh (dki->value), |
161 | TALER_amount_ntoh (dki->fee_withdraw)); | 161 | TALER_amount_ntoh (dki->fee_withdraw)); |
@@ -353,7 +353,7 @@ refresh_accept_melts (struct MHD_Connection *connection, | |||
353 | GNUNET_CRYPTO_hash_context_read (hash_context, | 353 | GNUNET_CRYPTO_hash_context_read (hash_context, |
354 | &coin_public_info.coin_pub, sizeof (struct GNUNET_CRYPTO_EddsaPublicKey)); | 354 | &coin_public_info.coin_pub, sizeof (struct GNUNET_CRYPTO_EddsaPublicKey)); |
355 | 355 | ||
356 | dki = TALER_MINT_get_denom_key (key_state, &coin_public_info.denom_pub); | 356 | dki = &(TALER_MINT_get_denom_key (key_state, &coin_public_info.denom_pub)->issue); |
357 | 357 | ||
358 | if (NULL == dki) | 358 | if (NULL == dki) |
359 | return (MHD_YES == request_send_json_pack (connection, MHD_HTTP_NOT_FOUND, | 359 | return (MHD_YES == request_send_json_pack (connection, MHD_HTTP_NOT_FOUND, |
@@ -1344,7 +1344,7 @@ TALER_MINT_handler_refresh_reveal (struct RequestHandler *rh, | |||
1344 | { | 1344 | { |
1345 | struct RefreshCommitCoin commit_coin; | 1345 | struct RefreshCommitCoin commit_coin; |
1346 | struct TALER_RSA_PublicKeyBinaryEncoded denom_pub; | 1346 | struct TALER_RSA_PublicKeyBinaryEncoded denom_pub; |
1347 | struct TALER_MINT_DenomKeyIssue *dki; | 1347 | struct TALER_MINT_DenomKeyIssuePriv *dki; |
1348 | struct TALER_RSA_Signature ev_sig; | 1348 | struct TALER_RSA_Signature ev_sig; |
1349 | 1349 | ||
1350 | res = TALER_MINT_DB_get_refresh_commit_coin (db_conn, | 1350 | res = TALER_MINT_DB_get_refresh_commit_coin (db_conn, |