summaryrefslogtreecommitdiff
path: root/src/mint
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-27 22:01:08 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-27 22:01:08 +0100
commit27a72fdafe67bcba304e274e839a2780009bd8da (patch)
tree68ce5ae2af5083bb51b37643100ba1be09c5d5bf /src/mint
parent426f05adbd6320c335248f9b40da881efae31ad3 (diff)
downloadexchange-27a72fdafe67bcba304e274e839a2780009bd8da.tar.gz
exchange-27a72fdafe67bcba304e274e839a2780009bd8da.tar.bz2
exchange-27a72fdafe67bcba304e274e839a2780009bd8da.zip
cleaning up types used
Diffstat (limited to 'src/mint')
-rw-r--r--src/mint/mint.h5
-rw-r--r--src/mint/taler-mint-httpd_db.c4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/mint/mint.h b/src/mint/mint.h
index bf8dfcfd3..046b9c17e 100644
--- a/src/mint/mint.h
+++ b/src/mint/mint.h
@@ -179,10 +179,9 @@ struct RefreshCommitLink
struct GNUNET_CRYPTO_EcdsaPublicKey transfer_pub;
/**
- * FIXME: this is the encrypted shared secret, should use
- * a different type...
+ * Encrypted shared secret to decrypt the link.
*/
- struct GNUNET_HashCode shared_secret_enc;
+ struct TALER_EncryptedLinkSecret shared_secret_enc;
};
diff --git a/src/mint/taler-mint-httpd_db.c b/src/mint/taler-mint-httpd_db.c
index 9ddce104d..8f7553896 100644
--- a/src/mint/taler-mint-httpd_db.c
+++ b/src/mint/taler-mint-httpd_db.c
@@ -908,7 +908,7 @@ TALER_MINT_db_execute_refresh_reveal (struct MHD_Connection *connection,
off = 0;
for (i = 0; i < refresh_session.kappa - 1; i++)
{
- struct GNUNET_HashCode last_shared_secret;
+ struct TALER_LinkSecret last_shared_secret;
int secret_initialized = GNUNET_NO;
if (i == refresh_session.noreveal_index)
@@ -919,7 +919,7 @@ TALER_MINT_db_execute_refresh_reveal (struct MHD_Connection *connection,
struct RefreshCommitLink commit_link;
struct GNUNET_CRYPTO_EcdsaPublicKey coin_pub;
struct GNUNET_HashCode transfer_secret;
- struct GNUNET_HashCode shared_secret;
+ struct TALER_LinkSecret shared_secret;
res = TALER_MINT_DB_get_refresh_commit_link (db_conn,
refresh_session_pub,