diff options
author | Florian Dold <florian@dold.me> | 2021-03-01 16:55:55 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-03-01 16:55:55 +0100 |
commit | c18d676333c148a3c9fb5eea75089c1cff599c21 (patch) | |
tree | 6e24043895d9143c0c236198ef6c4723b38778d5 /src/lib/merchant_api_patch_instance.c | |
parent | d08fe7d715adcf093f21b0abbbeed0b781314819 (diff) |
remove auth token from PATCH instance
Diffstat (limited to 'src/lib/merchant_api_patch_instance.c')
-rw-r--r-- | src/lib/merchant_api_patch_instance.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/merchant_api_patch_instance.c b/src/lib/merchant_api_patch_instance.c index 536fbdcf..bd69a8ba 100644 --- a/src/lib/merchant_api_patch_instance.c +++ b/src/lib/merchant_api_patch_instance.c @@ -169,7 +169,6 @@ TALER_MERCHANT_instance_patch ( const struct TALER_Amount *default_max_deposit_fee, struct GNUNET_TIME_Relative default_wire_transfer_delay, struct GNUNET_TIME_Relative default_pay_delay, - const char *auth_token, TALER_MERCHANT_InstancePatchCallback cb, void *cb_cls) { @@ -177,19 +176,6 @@ TALER_MERCHANT_instance_patch ( json_t *jpayto_uris; json_t *req_obj; - if (NULL != auth_token) - { - if (0 != strncasecmp (RFC_8959_PREFIX, - auth_token, - strlen (RFC_8959_PREFIX))) - { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Authentication token must start with `%s'\n", - RFC_8959_PREFIX); - return NULL; - } - auth_token += strlen (RFC_8959_PREFIX); - } jpayto_uris = json_array (); if (NULL == jpayto_uris) { @@ -207,10 +193,8 @@ TALER_MERCHANT_instance_patch ( return NULL; } } - req_obj = json_pack ("{s:s?, s:o, s:s, s:O, s:O" + req_obj = json_pack ("{s:o, s:s, s:O, s:O" " s:o, s:I: s:o, s:o, s:o}", - "auth_token", - auth_token, "payto_uris", jpayto_uris, "name", |