fix FTBFS

This commit is contained in:
Christian Grothoff 2020-01-18 23:28:01 +01:00
parent ff35a1d229
commit 889644c686
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

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