diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-04-23 17:45:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-04-23 17:45:53 +0200 |
commit | 889595f986d922ffbcdcd746fdfad7f1a0e53595 (patch) | |
tree | 41571e0f04caa95c06610440d2b8c9c3698b08ed /src/include/taler_merchant_bank_lib.h | |
parent | 4b7d9f5e19e9f28ec1163f3b6e5c00f0805e6221 (diff) |
make taler-merchant-wirewatch multi-instance capable
Diffstat (limited to 'src/include/taler_merchant_bank_lib.h')
-rw-r--r-- | src/include/taler_merchant_bank_lib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/taler_merchant_bank_lib.h b/src/include/taler_merchant_bank_lib.h index e295f0b3..beaaa516 100644 --- a/src/include/taler_merchant_bank_lib.h +++ b/src/include/taler_merchant_bank_lib.h @@ -217,6 +217,22 @@ TALER_MERCHANT_BANK_auth_parse_cfg ( /** + * Convenience method for parsing JSON with bank + * authentication data. + * + * @param cred configuration to parse + * @param backend_url URL of the backend (not in the JSON) + * @param[out] auth set to the configuration data found + * @return #GNUNET_OK on success + */ +enum GNUNET_GenericReturnValue +TALER_MERCHANT_BANK_auth_parse_json ( + const json_t *cred, + const char *backend_url, + struct TALER_MERCHANT_BANK_AuthenticationData *auth); + + +/** * Free memory inside of @a auth (but not @a auth itself). * Dual to #TALER_MERCHANT_BANK_auth_parse_cfg(). * |