diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-11-27 19:32:43 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-11-27 19:32:43 +0100 |
commit | a6f98bab5a1b9d05851d665782c5e8aad4701a41 (patch) | |
tree | 60d9dd899f74bdc956874aa976a13cbf8dd8e318 /src/exchangedb | |
parent | 99de3a49c3c336418a53c6a1842cf4b2e45d80dc (diff) |
first draft for POST /management/keys
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index f94dd7395..74d4f92ae 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -7109,13 +7109,18 @@ postgres_insert_denomination_revocation ( const struct GNUNET_HashCode *denom_pub_hash, const struct TALER_MasterSignatureP *master_sig) { + struct PostgresClosure *pc = cls; struct GNUNET_PQ_QueryParam params[] = { GNUNET_PQ_query_param_auto_from_type (denom_pub_hash), GNUNET_PQ_query_param_auto_from_type (master_sig), GNUNET_PQ_query_param_end }; - (void) cls; + if (NULL == session) + session = postgres_get_session (pc); + if (NULL == session) + return GNUNET_DB_STATUS_HARD_ERROR; + return GNUNET_PQ_eval_prepared_non_select (session->conn, "denomination_revocation_insert", params); |