summaryrefslogtreecommitdiff
path: root/src/reducer/anastasis_api_redux.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-04-13 08:52:15 +0200
committerChristian Grothoff <christian@grothoff.org>2022-04-13 08:53:19 +0200
commit6516ced3f6bdbedb43a40023f3336097662bfc03 (patch)
treecdc8a856907bc442b9899fb86c193228c2a1875b /src/reducer/anastasis_api_redux.c
parentb0cda372fb2412459e0462c18b4e9f70ca7992ab (diff)
downloadanastasis-6516ced3f6bdbedb43a40023f3336097662bfc03.tar.gz
anastasis-6516ced3f6bdbedb43a40023f3336097662bfc03.tar.bz2
anastasis-6516ced3f6bdbedb43a40023f3336097662bfc03.zip
-rename fest for #7045
Diffstat (limited to 'src/reducer/anastasis_api_redux.c')
-rw-r--r--src/reducer/anastasis_api_redux.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/reducer/anastasis_api_redux.c b/src/reducer/anastasis_api_redux.c
index 58ca0fb..1dba576 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -188,9 +188,9 @@ struct ConfigRequest
struct TALER_Amount liability_limit;
/**
- * Server salt.
+ * Provider salt.
*/
- struct ANASTASIS_CRYPTO_ProviderSaltP salt;
+ struct ANASTASIS_CRYPTO_ProviderSaltP provider_salt;
/**
* Task to timeout /config requests.
@@ -539,8 +539,8 @@ notify_waiting (struct ConfigRequest *cr)
cr->business_name),
GNUNET_JSON_pack_uint64 ("storage_limit_in_megabytes",
cr->storage_limit_in_megabytes),
- GNUNET_JSON_pack_data_auto ("salt",
- &cr->salt),
+ GNUNET_JSON_pack_data_auto ("provider_salt",
+ &cr->provider_salt),
GNUNET_JSON_pack_uint64 ("http_status",
cr->http_status));
}
@@ -617,7 +617,7 @@ config_cb (void *cls,
cr->annual_fee = acfg->annual_fee;
cr->truth_upload_fee = acfg->truth_upload_fee;
cr->liability_limit = acfg->liability_limit;
- cr->salt = acfg->salt;
+ cr->provider_salt = acfg->provider_salt;
}
}
notify_waiting (cr);
@@ -2013,17 +2013,18 @@ ANASTASIS_REDUX_load_continents_ ()
/**
- * Lookup @a salt of @a provider_url in @a state.
+ * Lookup @a provider_salt of @a provider_url in @a state.
*
* @param state the state to inspect
* @param provider_url provider to look into
- * @param[out] salt value to extract
+ * @param[out] provider_salt value to extract
* @return #GNUNET_OK on success
*/
enum GNUNET_GenericReturnValue
-ANASTASIS_reducer_lookup_salt (const json_t *state,
- const char *provider_url,
- struct ANASTASIS_CRYPTO_ProviderSaltP *salt)
+ANASTASIS_reducer_lookup_salt (
+ const json_t *state,
+ const char *provider_url,
+ struct ANASTASIS_CRYPTO_ProviderSaltP *provider_salt)
{
const json_t *aps;
const json_t *cfg;
@@ -2040,8 +2041,8 @@ ANASTASIS_reducer_lookup_salt (const json_t *state,
&http_status),
NULL),
GNUNET_JSON_spec_mark_optional (
- GNUNET_JSON_spec_fixed_auto ("salt",
- salt),
+ GNUNET_JSON_spec_fixed_auto ("provider_salt",
+ provider_salt),
&no_salt),
GNUNET_JSON_spec_end ()
};