diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-10-05 16:07:09 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-10-05 16:07:09 +0200 |
commit | 2524dfc8d318a8f765e1600f1ecde54bc6c5a921 (patch) | |
tree | a0c485505b7d0e5538a39ff414f731b1082a0dae /src/lib/exchange_api_handle.c | |
parent | 477d009cb0aa529294b298d5ba629cdf904e210c (diff) |
refactor extensions: config -> manifest
Diffstat (limited to 'src/lib/exchange_api_handle.c')
-rw-r--r-- | src/lib/exchange_api_handle.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/exchange_api_handle.c b/src/lib/exchange_api_handle.c index add37a80..06613981 100644 --- a/src/lib/exchange_api_handle.c +++ b/src/lib/exchange_api_handle.c @@ -897,18 +897,18 @@ decode_keys_json (const json_t *resp_obj, } } - /* Parse the supported extension(s): age-restriction. */ + /* Parse the supported extension(s): age_restriction. */ /* TODO: maybe lift all this into a FP in TALER_Extension ? */ { struct TALER_MasterSignatureP extensions_sig = {0}; - json_t *extensions = NULL; + json_t *manifests = NULL; bool no_extensions = false; bool no_signature = false; struct GNUNET_JSON_Specification ext_spec[] = { GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_json ("extensions", - &extensions), + &manifests), &no_extensions), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_fixed_auto ( @@ -933,14 +933,14 @@ decode_keys_json (const json_t *resp_obj, { /* 2. We have an extensions object. Verify its signature. */ EXITIF (GNUNET_OK != - TALER_extensions_verify_json_config_signature ( - extensions, + TALER_extensions_verify_manifests_signature ( + manifests, &extensions_sig, &key_data->master_pub)); /* 3. Parse and set the the configuration of the extensions accordingly */ EXITIF (GNUNET_OK != - TALER_extensions_load_json_config (extensions)); + TALER_extensions_load_manifests (manifests)); } /* 4. assuming we might have now a new value for age_mask, set it in key_data */ |