-more consistent naming of KYC_PERSONA options

This commit is contained in:
Christian Grothoff 2023-01-10 13:35:57 +01:00
parent ade221f974
commit b41ffd1a1a
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 13 additions and 13 deletions

View File

@ -886,10 +886,10 @@ TEH_RESPONSE_compile_reserve_history (
merge->merge_timestamp), merge->merge_timestamp),
GNUNET_JSON_pack_timestamp ("purse_expiration", GNUNET_JSON_pack_timestamp ("purse_expiration",
merge->purse_expiration), merge->purse_expiration),
TALER_JSON_pack_amount ("amount",
&merge->amount_with_fee),
TALER_JSON_pack_amount ("purse_fee", TALER_JSON_pack_amount ("purse_fee",
&merge->purse_fee), &merge->purse_fee),
TALER_JSON_pack_amount ("amount",
&merge->amount_with_fee),
GNUNET_JSON_pack_bool ("merged", GNUNET_JSON_pack_bool ("merged",
merge->merged)))) merge->merged))))
{ {

View File

@ -369,31 +369,31 @@ persona_load_configuration (void *cls,
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_time (ps->cfg, GNUNET_CONFIGURATION_get_value_time (ps->cfg,
provider_section_name, provider_section_name,
"PERSONA_VALIDITY", "KYC_PERSONA_VALIDITY",
&pd->validity)) &pd->validity))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
provider_section_name, provider_section_name,
"PERSONA_VALIDITY"); "KYC_PERSONA_VALIDITY");
persona_unload_configuration (pd); persona_unload_configuration (pd);
return NULL; return NULL;
} }
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (ps->cfg, GNUNET_CONFIGURATION_get_value_string (ps->cfg,
provider_section_name, provider_section_name,
"PERSONA_AUTH_TOKEN", "KYC_PERSONA_AUTH_TOKEN",
&pd->auth_token)) &pd->auth_token))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
provider_section_name, provider_section_name,
"PERSONA_AUTH_TOKEN"); "KYC_PERSONA_AUTH_TOKEN");
persona_unload_configuration (pd); persona_unload_configuration (pd);
return NULL; return NULL;
} }
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (ps->cfg, GNUNET_CONFIGURATION_get_value_string (ps->cfg,
provider_section_name, provider_section_name,
"SALT", "KYC_PERSONA_SALT",
&pd->salt)) &pd->salt))
{ {
uint32_t salt[8]; uint32_t salt[8];
@ -407,36 +407,36 @@ persona_load_configuration (void *cls,
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (ps->cfg, GNUNET_CONFIGURATION_get_value_string (ps->cfg,
provider_section_name, provider_section_name,
"PERSONA_SUBDOMAIN", "KYC_PERSONA_SUBDOMAIN",
&pd->subdomain)) &pd->subdomain))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
provider_section_name, provider_section_name,
"PERSONA_SUBDOMAIN"); "KYC_PERSONA_SUBDOMAIN");
persona_unload_configuration (pd); persona_unload_configuration (pd);
return NULL; return NULL;
} }
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (ps->cfg, GNUNET_CONFIGURATION_get_value_string (ps->cfg,
provider_section_name, provider_section_name,
"KYC_POST_URL", "KYC_PERSONA_POST_URL",
&pd->post_kyc_redirect_url)) &pd->post_kyc_redirect_url))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
provider_section_name, provider_section_name,
"KYC_POST_URL"); "KYC_PERSONA_POST_URL");
persona_unload_configuration (pd); persona_unload_configuration (pd);
return NULL; return NULL;
} }
if (GNUNET_OK != if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (ps->cfg, GNUNET_CONFIGURATION_get_value_string (ps->cfg,
provider_section_name, provider_section_name,
"PERSONA_TEMPLATE_ID", "KYC_PERSONA_TEMPLATE_ID",
&pd->template_id)) &pd->template_id))
{ {
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
provider_section_name, provider_section_name,
"PERSONA_TEMPLATE_ID"); "KYC_PERSONA_TEMPLATE_ID");
persona_unload_configuration (pd); persona_unload_configuration (pd);
return NULL; return NULL;
} }