From 6516ced3f6bdbedb43a40023f3336097662bfc03 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 13 Apr 2022 08:52:15 +0200 Subject: -rename fest for #7045 --- src/reducer/anastasis_api_redux.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/reducer/anastasis_api_redux.c') 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 () }; -- cgit v1.2.3