gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] 01/02: fix FTBFS


From: gnunet
Subject: [taler-exchange] 01/02: fix FTBFS
Date: Sat, 18 Jan 2020 23:34:58 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 889644c6862ae6ed2777cab6674c6dd5f4d0065d
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Jan 18 23:28:01 2020 +0100

    fix FTBFS
---
 src/bank-lib/taler-bank-transfer.c | 19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

diff --git a/src/bank-lib/taler-bank-transfer.c 
b/src/bank-lib/taler-bank-transfer.c
index 9cfe2a4a..d6fd7c89 100644
--- a/src/bank-lib/taler-bank-transfer.c
+++ b/src/bank-lib/taler-bank-transfer.c
@@ -40,14 +40,11 @@ static char *credit_account;
 static char *subject;
 
 /**
- * Username for authentication.
+ * Authentication data.
  */
-static char *username;
-
-/**
- * Password for authentication.
- */
-static char *password;
+static struct TALER_BANK_AuthenticationData auth = {
+  .method = TALER_BANK_AUTH_BASIC
+};
 
 /**
  * Return value from main().
@@ -157,7 +154,6 @@ run (void *cls,
      const char *cfgfile,
      const struct GNUNET_CONFIGURATION_Handle *cfg)
 {
-  struct TALER_BANK_AuthenticationData auth;
   struct TALER_ReservePublicKeyP reserve_pub;
 
   (void) cls;
@@ -180,9 +176,6 @@ run (void *cls,
   GNUNET_assert (NULL != ctx);
   rc = GNUNET_CURL_gnunet_rc_create (ctx);
 
-  auth.method = TALER_BANK_AUTH_BASIC;
-  auth.details.basic.username = username;
-  auth.details.basic.password = password;
   op = TALER_BANK_admin_add_incoming (ctx,
                                       &auth,
                                       &reserve_pub,
@@ -238,13 +231,13 @@ main (int argc, char *const *argv)
                                     "user",
                                     "USERNAME",
                                     "username to use for authentication",
-                                    &username)),
+                                    &auth.details.basic.username)),
     GNUNET_GETOPT_option_mandatory
       (GNUNET_GETOPT_option_string ('p',
                                     "pass",
                                     "PASSPHRASE",
                                     "passphrase to use for authentication",
-                                    &password)),
+                                    &auth.details.basic.password)),
     GNUNET_GETOPT_OPTION_END
   };
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]