gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-anastasis] branch master updated: Worked on db plugi


From: gnunet
Subject: [GNUnet-SVN] [taler-anastasis] branch master updated: Worked on db plugin.
Date: Mon, 14 Oct 2019 09:27:57 +0200

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 6499132  Worked on db plugin.
6499132 is described below

commit 64991323871a4cfd0fba9f8d5e826878cd4dbf0c
Author: Dennis Neufeld <address@hidden>
AuthorDate: Mon Oct 14 09:27:53 2019 +0200

    Worked on db plugin.
---
 src/include/anastasis_database_plugin.h | 39 +++++++++++++++++++++++++++------
 1 file changed, 32 insertions(+), 7 deletions(-)

diff --git a/src/include/anastasis_database_plugin.h 
b/src/include/anastasis_database_plugin.h
index bd82af5..a970ca4 100644
--- a/src/include/anastasis_database_plugin.h
+++ b/src/include/anastasis_database_plugin.h
@@ -183,7 +183,7 @@ struct AnastasisDatabasePlugin
                                   void **data,
                                   uint32_t *version);
 
-/**
+  /**
    * Upload Truth, which contains the Truth and the KeyShare.
    *
    * @param cls closure
@@ -211,24 +211,49 @@ struct AnastasisDatabasePlugin
                  size_t size_truth_mimetype,
                  struct GNUNET_TIME_Relative truth_expiration);
 
-
   /**
   * @param cls closure
   * @param uuid the identifier for the Truth
+  * @param response the challenge response of the user
+  * @param size_response size of the response
+  * @param data contains the encrypted key share (bytearray)
+  * @param data_size size of data
+  * @return transaction status
   */
   enum GNUNET_DB_QueryStatus
   (*get_encrypted_key_share)(void *cls,
-                             const struct ANASTASIS_uuid *uuid);
-
-
+                             const struct ANASTASIS_uuid *uuid,
+                             char *response,
+                             size_t size_response,
+                             void **data,
+                             size_t *data_size);
 
+  /**
+  * @param cls closure
+  * @param uuid the identifier for the Truth
+  * @param truth contains the truth (base32 encoded)
+  * @param truth_size size of truth
+  * @param truth_mime mime type of truth
+  * @param truth_mime_size size of truth_mime
+  * @return transaction status
+  */
+  enum GNUNET_DB_QueryStatus
+  (*get_escrow_challenge)(void *cls,
+                          const struct ANASTASIS_uuid *uuid,
+                          char **truth,
+                          size_t *truth_size,
+                          char **truth_mime,
+                          size_t *truth_mime_size);
 
   /**
+   * Do a pre-flight check that we are not in an uncommitted transaction.
+   * If we are, try to commit the previous transaction and output a warning.
+   * Does not return anything, as we will continue regardless of the outcome.
    *
-   * @param cls the plugin-specific state
+   * @param cls the `struct PostgresClosure` with the plugin-specific state
    */
   void
-  (*preflight) (void *cls);  // ???
+  (*preflight) (void *cls);
 
 
 };

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



reply via email to

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