summaryrefslogtreecommitdiff
path: root/src/bank-lib/bank_api_parse.c
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-17 23:40:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-17 23:40:44 +0100
commitd95f2a9e437b946bba66c2a0054524fc2e320621 (patch)
treed09f50a8aa04b57877139a3934d669c4a316d533 /src/bank-lib/bank_api_parse.c
parentf0d8311b1ccbe9e816127ca9a4de65a6f605c4b9 (diff)
downloadexchange-d95f2a9e437b946bba66c2a0054524fc2e320621.tar.gz
exchange-d95f2a9e437b946bba66c2a0054524fc2e320621.tar.bz2
exchange-d95f2a9e437b946bba66c2a0054524fc2e320621.zip
DCE, part one
Diffstat (limited to 'src/bank-lib/bank_api_parse.c')
-rw-r--r--src/bank-lib/bank_api_parse.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/src/bank-lib/bank_api_parse.c b/src/bank-lib/bank_api_parse.c
index 38401954..eaee04ba 100644
--- a/src/bank-lib/bank_api_parse.c
+++ b/src/bank-lib/bank_api_parse.c
@@ -24,58 +24,6 @@
/**
- * Convenience method for parsing configuration section with bank account data.
- *
- * @param cfg configuration to parse
- * @param section the section with the configuration data
- * @param acc[out] set to the account details
- * @return #GNUNET_OK on success
- */
-int
-TALER_BANK_account_parse_cfg (const struct GNUNET_CONFIGURATION_Handle *cfg,
- const char *section,
- struct TALER_Account *acc)
-{
- char *account_url;
-
- if (GNUNET_OK !=
- GNUNET_CONFIGURATION_get_value_string (cfg,
- section,
- "URL",
- &account_url))
- {
- GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
- section,
- "URL");
- return GNUNET_SYSERR;
- }
- if (TALER_EC_NONE !=
- TALER_BANK_payto_to_account (account_url,
- acc))
- {
- GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
- section,
- "URL",
- "Malformed payto:// URL for x-taler-bank method");
- GNUNET_free (account_url);
- return GNUNET_SYSERR;
- }
- if (TALER_PAC_X_TALER_BANK != acc->type)
- {
- GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR,
- section,
- "URL",
- "Malformed payto:// URL for x-taler-bank method");
- GNUNET_free (account_url);
- TALER_BANK_account_free (acc);
- return GNUNET_SYSERR;
- }
- GNUNET_free (account_url);
- return GNUNET_OK;
-}
-
-
-/**
* Parse configuration section with bank authentication data.
*
* @param cfg configuration to parse