[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: output short hash in cli discov
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: output short hash in cli discovery to enable duplicate detection by user |
Date: |
Tue, 12 Apr 2022 22:01:14 +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 4a6b457 output short hash in cli discovery to enable duplicate
detection by user
4a6b457 is described below
commit 4a6b457b0b6c8ac4d2c89c66f98cb7120139d1d6
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Apr 12 22:01:10 2022 +0200
output short hash in cli discovery to enable duplicate detection by user
---
src/cli/anastasis-cli-discover.c | 5 +++--
src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh | 2 +-
src/cli/test_anastasis_reducer_recovery_no_pay.sh | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/cli/anastasis-cli-discover.c b/src/cli/anastasis-cli-discover.c
index a7edcf1..2731ee8 100644
--- a/src/cli/anastasis-cli-discover.c
+++ b/src/cli/anastasis-cli-discover.c
@@ -104,12 +104,13 @@ print_policy_cb (void *cls,
return;
}
fprintf (stdout,
- "%s %u %u : \"%s\" \"%s\"\n",
+ "%s %u %u : \"%s\" \"%s\" (%s)\n",
provider_url,
(unsigned int) version,
(unsigned int) attribute_mask,
GNUNET_TIME_timestamp2s (server_time),
- secret_name);
+ secret_name,
+ GNUNET_h2s (hcpd));
}
diff --git a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
index 398fc43..e0db85e 100755
--- a/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
+++ b/src/cli/test_anastasis_reducer_recovery_enter_user_attributes.sh
@@ -428,7 +428,7 @@ anastasis-reducer -a '{"provider_url" :
"http://localhost:8086/" }' add_provider
echo " OK"
echo -n "Selecting secret to recover"
-anastasis-reducer -a '{"version": 0, "mask": 0, "provider_url" :
"http://localhost:8086/" }' next < $R1FILE > $R2FILE
+anastasis-reducer -a '{"mask": 0, "providers" : [ { "version": 0, "url" :
"http://localhost:8086/" } ] }' select_version < $R1FILE > $R2FILE
STATE=`jq -r -e .recovery_state < $R2FILE`
if test "$STATE" != "CHALLENGE_SELECTING"
diff --git a/src/cli/test_anastasis_reducer_recovery_no_pay.sh
b/src/cli/test_anastasis_reducer_recovery_no_pay.sh
index 6a1ed0f..8082b29 100755
--- a/src/cli/test_anastasis_reducer_recovery_no_pay.sh
+++ b/src/cli/test_anastasis_reducer_recovery_no_pay.sh
@@ -220,7 +220,7 @@ anastasis-reducer -a '{"provider_url" :
"http://localhost:8086/" }' add_provider
echo " OK"
echo -n "Selecting secret to recover"
-anastasis-reducer -a '{"version": 0, "mask": 0, "provider_url" :
"http://localhost:8086/" }' next < $R1FILE > $R2FILE
+anastasis-reducer -a '{"mask": 0, "providers" : [ { "version": 0, "url" :
"http://localhost:8086/" } ] }' select_version < $R1FILE > $R2FILE
STATE=`jq -r -e .recovery_state < $R2FILE`
if test "$STATE" != "CHALLENGE_SELECTING"
--
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: output short hash in cli discovery to enable duplicate detection by user,
gnunet <=