diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-11 23:28:33 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-11 23:28:33 +0200 |
commit | 5a6a3da8e42e2021c2cf7888e102b4c70634e2b7 (patch) | |
tree | a62652bb458fcb59cf2d03213b7890b60782bea8 /src/exchangedb/plugin_exchangedb_common.c | |
parent | dd724c009dcc6cbc2be1e5431f59917036f0784b (diff) | |
download | exchange-5a6a3da8e42e2021c2cf7888e102b4c70634e2b7.tar.xz |
updating DB schema to profit from new KDF-based refresh variant
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_common.c')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_common.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/exchangedb/plugin_exchangedb_common.c b/src/exchangedb/plugin_exchangedb_common.c index bb6801e80..1aa77a481 100644 --- a/src/exchangedb/plugin_exchangedb_common.c +++ b/src/exchangedb/plugin_exchangedb_common.c @@ -132,40 +132,4 @@ common_free_coin_transaction_list (void *cls, } -/** - * Free melt commitment data. - * - * @param cls the @e cls of this struct with the plugin-specific state (unused) - * @param mc data structure to free - */ -static void -common_free_melt_commitment (void *cls, - struct TALER_EXCHANGEDB_MeltCommitment *mc) -{ - unsigned int i; - unsigned int k; - - if (NULL != mc->denom_pubs) - { - for (i=0;i<mc->num_newcoins;i++) - if (NULL != mc->denom_pubs[i].rsa_public_key) - GNUNET_CRYPTO_rsa_public_key_free (mc->denom_pubs[i].rsa_public_key); - GNUNET_free (mc->denom_pubs); - } - for (k=0;k<TALER_CNC_KAPPA;k++) - { - if (NULL != mc->commit_coins[k]) - { - for (i=0;i<mc->num_newcoins;i++) - { - /* NOTE: 'non_null' because this API is used also - internally to clean up the struct on failures! */ - GNUNET_free_non_null (mc->commit_coins[k][i].coin_ev); - } - GNUNET_free (mc->commit_coins[k]); - } - } - GNUNET_free (mc); -} - /* end of plugin_exchangedb_common.c */ |