gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated (ff35a1d2 -> 6e17a847)


From: gnunet
Subject: [taler-exchange] branch master updated (ff35a1d2 -> 6e17a847)
Date: Sat, 18 Jan 2020 23:34:57 +0100

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

grothoff pushed a change to branch master
in repository exchange.

    from ff35a1d2 deduplicate doxyfiles, integrate with build
     new 889644c6 fix FTBFS
     new 6e17a847 fix FTBFS

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/bank-lib/fakebank.c            |  2 +-
 src/bank-lib/taler-bank-transfer.c | 19 ++++++-------------
 2 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 0de31fc7..e12a9d79 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -933,7 +933,7 @@ handle_debit_history (struct TALER_FAKEBANK_Handle *h,
     if (0 > ha.delta)
       pos = pos->prev;
     else
-      pos = pos->tail;
+      pos = pos->next;
   }
   else
   {
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]