aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-07-31 15:00:53 +0200
committerChristian Grothoff <christian@grothoff.org>2024-07-31 15:00:53 +0200
commit7d19f9856043179a93f198321cd973d71ea625fd (patch)
tree35ef458b81724b2411de5c235ff750a337fba128
parentf5e010c3eee11aab4521d7dc97594d8809c60839 (diff)
make knowledge of private key optional
-rw-r--r--src/testing/testing_api_cmd_bank_admin_add_kycauth.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_bank_admin_add_kycauth.c b/src/testing/testing_api_cmd_bank_admin_add_kycauth.c
index 7af413ef4..d804d3813 100644
--- a/src/testing/testing_api_cmd_bank_admin_add_kycauth.c
+++ b/src/testing/testing_api_cmd_bank_admin_add_kycauth.c
@@ -188,7 +188,6 @@ admin_add_kycauth_run (void *cls,
{
const struct TALER_TESTING_Command *ref;
const union TALER_AccountPrivateKeyP *account_priv;
- const union TALER_AccountPublicKeyP *account_pub;
ref = TALER_TESTING_interpreter_lookup_command (
is,
@@ -203,6 +202,8 @@ admin_add_kycauth_run (void *cls,
TALER_TESTING_get_trait_account_priv (ref,
&account_priv))
{
+ const union TALER_AccountPublicKeyP *account_pub;
+
if (GNUNET_OK !=
TALER_TESTING_get_trait_account_pub (ref,
&account_pub))
@@ -211,6 +212,7 @@ admin_add_kycauth_run (void *cls,
TALER_TESTING_interpreter_fail (is);
return;
}
+ fts->account_pub = *account_pub;
}
else
{