[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: fix input data
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: fix input data |
Date: |
Sun, 21 Feb 2021 19:29:23 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new c8afb50 fix input data
c8afb50 is described below
commit c8afb504031ad63462c153f8d99facfd92566e43
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sun Feb 21 19:29:21 2021 +0100
fix input data
---
src/reducer/anastasis_api_backup_redux.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/reducer/anastasis_api_backup_redux.c
b/src/reducer/anastasis_api_backup_redux.c
index 9669b0b..79e1b7b 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -2201,13 +2201,12 @@ enter_secret (json_t *state,
ANASTASIS_ActionCallback cb,
void *cb_cls)
{
- const char *secret;
- const char *type;
+ void *secret;
+ size_t secret_size;
struct GNUNET_JSON_Specification spec[] = {
- GNUNET_JSON_spec_string ("secret",
- &secret),
- GNUNET_JSON_spec_string ("type",
- &type),
+ GNUNET_JSON_spec_varsize ("secret",
+ &secret,
+ &secret_size),
GNUNET_JSON_spec_end ()
};
@@ -2227,13 +2226,14 @@ enter_secret (json_t *state,
ANASTASIS_redux_fail_ (cb,
cb_cls,
TALER_EC_ANASTASIS_REDUCER_INPUT_INVALID,
- "'secret' and 'type' arguments required");
+ "'secret' argument required");
return NULL;
}
GNUNET_assert (0 ==
json_object_set (state,
"core_secret",
- json_incref ((json_t *) arguments)));
+ GNUNET_JSON_from_data (secret,
+ secret_size)));
return upload (state,
cb,
cb_cls);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: fix input data,
gnunet <=