[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, 07 Oct 2019 12:19:27 +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 83e9836 Worked on DB Plugin
83e9836 is described below
commit 83e9836a8a3b7d0cfc0f0301ea332ad40523df79
Author: Dennis Neufeld <address@hidden>
AuthorDate: Mon Oct 7 12:19:23 2019 +0200
Worked on DB Plugin
---
src/include/anastasis_database_plugin.h | 48 +++++++++++++++++----------------
1 file changed, 25 insertions(+), 23 deletions(-)
diff --git a/src/include/anastasis_database_plugin.h
b/src/include/anastasis_database_plugin.h
index 082db5c..6a0aedb 100644
--- a/src/include/anastasis_database_plugin.h
+++ b/src/include/anastasis_database_plugin.h
@@ -36,7 +36,7 @@ struct ANASTASIS_AccountPubP {
/**
* Random identifier used to later charge a payment.
*/
-struct ANASTASIS_PaymentIdentifierP {
+struct ANASTASIS_PaymentSecretP {
uint32_t id[8];
};
@@ -113,7 +113,7 @@ struct AnastasisDatabasePlugin
* @param account_pub public key of the user's account
* @param num_uploads how many uploads does @a amount pay for
* @param lifetime_inc for how long does @a amount pay for account
maintenance
- * @param payment_identifier identifier for the payment, used to later
charge on uploads
+ * @param payment_secret identifier for the payment, used to later charge on
uploads
* @return transaction status
*/
enum GNUNET_DB_QueryStatus
@@ -122,26 +122,28 @@ struct AnastasisDatabasePlugin
const struct ANASTASIS_AccountPubP *account_pub,
unsigned int num_uploads,
struct GNUNET_TIME_Relative lifetime_inc,
- const struct ANASTASIS_PaymentIdentifierP
*payment_identifier);
+ const struct ANASTASIS_PaymentSecretP *payment_secret);
/**
- * Record user payment.
+ * Upload encrypted recovery document.
*
* @param cls closure
* @param account_pub public key of the user's account
- * @param encrypted_policy_document_size FIXME
- * @param encrypted_policy_document FIXME
- * @param payment_identifier identifier for the payment, used to later
charge on uploads
+ * @param aes_gcm_tag
+ * @param nonce
+ * @param encrypted_recovery_document
+ * @param payment_secret identifier for the payment, used to later charge on
uploads
* @param version[OUT] set to the version assigned to the document by the
database
- * @return transaction status, 0 if upload could not be finished because @a
payment_identifier
- * did not have enough upload left; HARD error if @a
payment_identifier is unknown, ...
+ * @return transaction status, 0 if upload could not be finished because @a
payment_secret
+ * did not have enough upload left; HARD error if @a payment_secret
is unknown, ...
*/
enum GNUNET_DB_QueryStatus
- (*upload_policy) (void *cls,
+ (*upload_recovery_document) (void *cls,
const struct ANASTASIS_AccountPubP *account_pub,
- size_t encrypted_policy_document_size,
- const void *encrypted_policy_document,
- const struct ANASTASIS_PaymentIdentifierP
*payment_identifier,
+ const void *aes_gcm_tag,
+ const void *encrypted_recovery_document,
+ const void *nonce,
+ const struct ANASTASIS_PaymentSecretP *payment_secret,
uint32_t *version);
/**
@@ -150,17 +152,17 @@ struct AnastasisDatabasePlugin
* @param cls closure
* @param account_pub public key of the user's account
* @param version FIXME
- * @param encrypted_policy_document_size[OUT] FIXME
- * @param encrypted_policy_document[OUT] FIXME
- * @param payment_identifier identifier for the payment, used to later
charge on uploads
+ * @param aes_gcm_tag[OUT] FIXME
+ * @param encrypted_recovery_document[OUT] FIXME
+ * @param payment_secret identifier for the payment, used to later charge on
uploads
* @return transaction status
*/
enum GNUNET_DB_QueryStatus
(*get_policy) (void *cls,
const struct ANASTASIS_AccountPubP *account_pub,
uint32_t version,
- size_t *encrypted_policy_document_size,
- void **encrypted_policy_document);
+ size_t *aes_gcm_tag,
+ void **encrypted_recovery_document);
/**
@@ -169,16 +171,16 @@ struct AnastasisDatabasePlugin
* @param cls closure
* @param account_pub public key of the user's account
* @param version[OUT] set to the version number of the policy being returned
- * @param encrypted_policy_document_size[OUT] FIXME
- * @param encrypted_policy_document[OUT] FIXME
- * @param payment_identifier identifier for the payment, used to later
charge on uploads
+ * @param aes_gcm_tag[OUT] FIXME
+ * @param encrypted_recovery_document[OUT] FIXME
+ * @param payment_secret identifier for the payment, used to later charge on
uploads
* @return transaction status
*/
enum GNUNET_DB_QueryStatus
(*get_latest_policy) (void *cls,
const struct ANASTASIS_AccountPubP *account_pub,
- size_t *encrypted_policy_document_size,
- void **encrypted_policy_document,
+ size_t *aes_gcm_tag,
+ void **encrypted_recovery_document,
uint32_t *version);
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [taler-anastasis] branch master updated: Worked on DB Plugin,
gnunet <=