[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: adapations to GNUnet API change
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: adapations to GNUnet API change |
Date: |
Sat, 11 Apr 2020 21:47:32 +0200 |
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 6efcc27 adapations to GNUnet API change
6efcc27 is described below
commit 6efcc27637030c070b56c1143b078fa422a6f9d2
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Apr 11 20:56:29 2020 +0200
adapations to GNUnet API change
---
src/include/anastasis.h | 3 ++-
src/lib/testing_api_cmd_policy_lookup.c | 7 +++----
src/lib/testing_api_cmd_policy_store.c | 9 ++-------
3 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/src/include/anastasis.h b/src/include/anastasis.h
index ba8af3a..cf7e18a 100644
--- a/src/include/anastasis.h
+++ b/src/include/anastasis.h
@@ -184,7 +184,7 @@ ANASTASIS_challenge_select_to_pay (struct
ANASTASIS_Challenge *challenge,
*
* @param cls closure for the callback
* @param ri recovery information struct which contains the policies (NULL if
all provider candidates gave us 404/errors)
-* @param ecs array of error codes, one per provider, EC_NONE-terminated
+* @param ecs array of error codes, one per provider, #TALER_EC_NONE-terminated
*/
typedef void
(*ANASTASIS_PolicyCallback)(void *cls,
@@ -218,6 +218,7 @@ ANASTASIS_recovery_begin (const json_t *id_data,
void *pc_cls,
ANASTASIS_CoreSecretCallback csc,
void *csc_cls);
+
/**
* Cancels the recovery process
* @param r handle to the recovery struct
diff --git a/src/lib/testing_api_cmd_policy_lookup.c
b/src/lib/testing_api_cmd_policy_lookup.c
index c3a1cbb..c41ce10 100644
--- a/src/lib/testing_api_cmd_policy_lookup.c
+++ b/src/lib/testing_api_cmd_policy_lookup.c
@@ -271,15 +271,14 @@ ANASTASIS_TESTING_cmd_policy_nx (const char *label,
const char *anastasis_url)
{
struct PolicyLookupState *pls;
- struct GNUNET_CRYPTO_EddsaPrivateKey *priv;
+ struct GNUNET_CRYPTO_EddsaPrivateKey priv;
pls = GNUNET_new (struct PolicyLookupState);
pls->http_status = MHD_HTTP_NOT_FOUND;
pls->anastasis_url = anastasis_url;
- priv = GNUNET_CRYPTO_eddsa_key_create ();
- GNUNET_CRYPTO_eddsa_key_get_public (priv,
+ GNUNET_CRYPTO_eddsa_key_create (&priv);
+ GNUNET_CRYPTO_eddsa_key_get_public (&priv,
&pls->anastasis_pub.pub);
- GNUNET_free (priv);
{
struct TALER_TESTING_Command cmd = {
.cls = pls,
diff --git a/src/lib/testing_api_cmd_policy_store.c
b/src/lib/testing_api_cmd_policy_store.c
index 2cdfbe9..04b04ec 100644
--- a/src/lib/testing_api_cmd_policy_store.c
+++ b/src/lib/testing_api_cmd_policy_store.c
@@ -339,14 +339,9 @@ policy_store_run (void *cls,
}
else
{
- // Create an eddsa private key
- struct GNUNET_CRYPTO_EddsaPrivateKey *priv;
-
- priv = GNUNET_CRYPTO_eddsa_key_create ();
- pss->anastasis_priv.priv = *priv;
- GNUNET_CRYPTO_eddsa_key_get_public (priv,
+ GNUNET_CRYPTO_eddsa_key_create (&pss->anastasis_priv.priv);
+ GNUNET_CRYPTO_eddsa_key_get_public (&pss->anastasis_priv.priv,
&pss->anastasis_pub.pub);
- GNUNET_free (priv);
}
if (0 != (ANASTASIS_TESTING_PSO_PREV_HASH_WRONG & pss->psopt))
--
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: adapations to GNUnet API change,
gnunet <=