summaryrefslogtreecommitdiff
path: root/src/include/taler_merchant_bank_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/taler_merchant_bank_lib.h')
-rw-r--r--src/include/taler_merchant_bank_lib.h16
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().
*