gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: Modified truth insertion


From: gnunet
Subject: [taler-anastasis] branch master updated: Modified truth insertion
Date: Tue, 29 Oct 2019 20:32:00 +0100

This is an automated email from the git hooks/post-receive script.

dennis-neufeld pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 50e8f50  Modified truth insertion
50e8f50 is described below

commit 50e8f50386e10e5e113d05cd103023ca2e4822f5
Author: Dennis Neufeld <address@hidden>
AuthorDate: Tue Oct 29 19:31:13 2019 +0000

    Modified truth insertion
---
 src/backup-db/plugin_anastasis_postgres.c | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/backup-db/plugin_anastasis_postgres.c 
b/src/backup-db/plugin_anastasis_postgres.c
index 25d4959..9ab11e0 100644
--- a/src/backup-db/plugin_anastasis_postgres.c
+++ b/src/backup-db/plugin_anastasis_postgres.c
@@ -577,6 +577,9 @@ postgres_store_truth (void *cls,
                       const struct ANASTASIS_uuid *uuid,
                       const void *truth_data,
                       size_t truth_data_size,
+                      const char mime_type,
+                      const void *encrypted_key_share,
+                      size_t encrypted_key_share_size,
                       struct GNUNET_TIME_Relative truth_expiration)
 {
   struct PostgresClosure *pg = cls;
@@ -596,6 +599,9 @@ postgres_store_truth (void *cls,
     struct GNUNET_PQ_QueryParam params[] = {
       GNUNET_PQ_query_param_auto_from_type (uuid),
       GNUNET_PQ_query_param_fixed_size (truth_data, truth_data_size),
+      GNUNET_PQ_query_param_string (mime_type),
+      GNUNET_PQ_query_param_fixed_size (encrypted_key_share,
+                                        encrypted_key_share_size),
       TALER_PQ_query_param_absolute_time (&expiration),
       GNUNET_PQ_query_param_end
     };
@@ -844,22 +850,23 @@ libtaler_plugin_anastasis_db_postgres_init (void *cls)
                             " WHERE user_id=$2;",
                             2),
     GNUNET_PQ_make_prepare ("payment_insert",
-                            "INSERT INTO anastasis_recoverydocument"
+                            "INSERT INTO anastasis_recoverydocument "
                             "(user_id"
                             ",post_counter"
                             ",payment_identifier"
                             ") VALUES "
                             "($1, $2, $3);",
                             3),
-
     GNUNET_PQ_make_prepare ("truth_insert",
                             "INSERT INTO anastasis_truth "
                             "(truth_id"
                             ",truth"
+                            ",mime_type"
+                            ",key_share"
                             ",expiration"
                             ") VALUES "
-                            "($1, $2, $3);",
-                            3),
+                            "($1, $2, $3, $4, $5);",
+                            5),
     GNUNET_PQ_make_prepare ("recovery_document_insert",
                             "INSERT INTO anastasis_recoverydocument "
                             "(user_id"
@@ -913,7 +920,6 @@ libtaler_plugin_anastasis_db_postgres_init (void *cls)
                             "WHERE user_id =$2 "
                             "AND payment_identifier=$3;",
                             3),
-
     GNUNET_PQ_make_prepare ("key_share_select",
                             "SELECT "
                             "key_share "

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]