diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-08-04 14:05:13 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-08-04 14:05:13 +0200 |
commit | 15f07a3e067dac4a1268cfd2b2fb44e3ade1c105 (patch) | |
tree | d6add9fc97f5d2052cf6e0ec12a0acb6ae549558 | |
parent | 383fd75230fc5301d432f50e4cb3474a59cb33e8 (diff) |
-document section name
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | src/bank-lib/taler-exchange-wire-gateway-client.c | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index fcb2a5c93..dbc9f07ab 100644 --- a/.gitignore +++ b/.gitignore @@ -144,3 +144,4 @@ po/stamp-po po/taler-exchange.pot po/remove-potcdate.sed src/include/taler_dbevents.h +src/bank-lib/taler-exchange-wire-gateway-client diff --git a/src/bank-lib/taler-exchange-wire-gateway-client.c b/src/bank-lib/taler-exchange-wire-gateway-client.c index 842778088..2f5df8722 100644 --- a/src/bank-lib/taler-exchange-wire-gateway-client.c +++ b/src/bank-lib/taler-exchange-wire-gateway-client.c @@ -601,6 +601,16 @@ run (void *cls, rc = GNUNET_CURL_gnunet_rc_create (ctx); if (NULL != account_section) { + if (0 != strncasecmp ("exchange-accountcredentials-" + account_section, + strlen ("exchange-accountcredentials-"))) + { + fprintf (stderr, + "Error: invalid section specified, must begin with `%s`\n", + "exchange-accountcredentials-"); + GNUNET_SCHEDULER_shutdown (); + return; + } if ( (NULL != auth.wire_gateway_url) || (NULL != auth.details.basic.username) || (NULL != auth.details.basic.password) ) |