[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: Worked on policy get handler
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: Worked on policy get handler |
Date: |
Wed, 20 Nov 2019 10:45:08 +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 de0e3a0 Worked on policy get handler
de0e3a0 is described below
commit de0e3a09b27e2ab82beb40d3020336af34bd38bf
Author: Dennis Neufeld <address@hidden>
AuthorDate: Wed Nov 20 09:44:50 2019 +0000
Worked on policy get handler
---
src/backend/anastasis-httpd_policy.c | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/src/backend/anastasis-httpd_policy.c
b/src/backend/anastasis-httpd_policy.c
index 1db1043..080a4a5 100644
--- a/src/backend/anastasis-httpd_policy.c
+++ b/src/backend/anastasis-httpd_policy.c
@@ -37,6 +37,7 @@ AH_handler_policy_GET (struct MHD_Connection *connection,
void **con_cls)
{
struct ANASTASIS_AccountPubP accountPubP;
+ void *res_recovery_data;
const char *version_s;
int ret;
@@ -60,9 +61,10 @@ AH_handler_policy_GET (struct MHD_Connection *connection,
version_s = MHD_lookup_connection_value (connection,
MHD_GET_ARGUMENT_KIND,
"version");
+ unsigned int version;
+
if (NULL != version_s)
{
- unsigned int version;
if (1 != sscanf (version_s,
"%u",
@@ -72,22 +74,25 @@ AH_handler_policy_GET (struct MHD_Connection *connection,
43 /*FIXME */,
"version");
}
- // call DB variant 1
+ db->get_recovery_document (db->cls,
+ &accountPubP,
+ sizeof (res_recovery_data),
+ &res_recovery_data,
+ &version);
}
else
{
- // call DB variant 2
+ db->get_latest_recovery_document (db->cls,
+ &accountPubP,
+ sizeof (res_recovery_data),
+ &res_recovery_data,
+ &version);
}
- /* db->get_latest_recovery_document (db->cls,
- &accountPubP,
- &recoverydatasize,
- &res_recovery_data,
- &res_version));
-
- */
+
// BUILD reply
// binary reply
+
{
struct MHD_Response *response;
void *binary = "test";
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: Worked on policy get handler,
gnunet <=