summaryrefslogtreecommitdiff
path: root/src/bank-lib/bank_api_common.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-05-29 10:27:41 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-05-29 10:27:41 +0200
commit5faa541d270fa6664a6b61b67c36dce48b368356 (patch)
tree76301bfae6ccdbb0ab00844133e1cbf0225fcd8d /src/bank-lib/bank_api_common.c
parent42dcf052d1283849ce2fa6f9a9504f64021c44f4 (diff)
downloadexchange-5faa541d270fa6664a6b61b67c36dce48b368356.tar.gz
exchange-5faa541d270fa6664a6b61b67c36dce48b368356.tar.bz2
exchange-5faa541d270fa6664a6b61b67c36dce48b368356.zip
do not use hard coded database string
Diffstat (limited to 'src/bank-lib/bank_api_common.c')
-rw-r--r--src/bank-lib/bank_api_common.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/bank-lib/bank_api_common.c b/src/bank-lib/bank_api_common.c
index ec55db892..ad1160073 100644
--- a/src/bank-lib/bank_api_common.c
+++ b/src/bank-lib/bank_api_common.c
@@ -59,11 +59,13 @@ append (struct curl_slist *hdr,
/**
* Build authentication header from @a auth.
*
- * @param auth authentication data to use
- * @return NULL on error, otherwise curl headers to use
+ * @param auth authentication data to use.
+ *
+ * @return NULL on error, otherwise curl headers to use.
*/
struct curl_slist *
-TALER_BANK_make_auth_header_ (const struct TALER_BANK_AuthenticationData *auth)
+TALER_BANK_make_auth_header_
+ (const struct TALER_BANK_AuthenticationData *auth)
{
struct curl_slist *authh;
@@ -89,9 +91,11 @@ TALER_BANK_make_auth_header_ (const struct TALER_BANK_AuthenticationData *auth)
/**
* Obtain the URL to use for an API request.
*
- * @param u base URL of the bank
- * @param path Taler API path (i.e. "/history")
- * @return the full URL to use with cURL
+ * @param u base URL of the bank.
+ * @param path Taler API path (i.e. "/history").
+ *
+ * @return the full URL to use with cURL, must be
+ * freed by the caller.
*/
char *
TALER_BANK_path_to_url_ (const char *u,
@@ -114,8 +118,9 @@ TALER_BANK_path_to_url_ (const char *u,
/**
* Parse error code given in @a json.
*
- * @param json the json to parse
- * @return error code, or #TALER_EC_INVALID if not found
+ * @param json the json to parse.
+ *
+ * @return error code, or #TALER_EC_INVALID if not found.
*/
enum TALER_ErrorCode
TALER_BANK_parse_ec_ (const json_t *json)