Narf, letzter commit war unvollständig durch uncrustify

Towards a complete test with age restriction

    - substantial amount of fixes in various parts
    - slight refactoring of extensions
    - fixes of post handler for /management/extensions
    - fixes for offline tool extensions signing

    State:
    - compiles, runs and tests succeed when age restriction is not
      enabled
    - compiles, runs and tests fail, when age restriction is enabled
This commit is contained in:
Özgür Kesim 2022-02-06 20:01:24 +01:00
parent 932dcde25c
commit 1090389d6f
Signed by: oec
GPG Key ID: 3D76A56D79EDD9D7
6 changed files with 18 additions and 15 deletions

View File

@ -1977,7 +1977,10 @@ finish_keys_response (struct TEH_KeyStateHandle *ksh)
if (age_restriction_active && if (age_restriction_active &&
(0 != dk->denom_pub.age_mask.mask)) (0 != dk->denom_pub.age_mask.mask))
{ {
GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "got agerestricted denom %p with mask %d\n", &dk->denom_pub, dk->denom_pub.age_mask.mask); GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
"got agerestricted denom %p with mask %d\n",
&dk->denom_pub,
dk->denom_pub.age_mask.mask);
array = age_restricted_denoms; array = age_restricted_denoms;
} }
else else

View File

@ -91,7 +91,7 @@ set_extensions (void *cls,
return GNUNET_DB_STATUS_HARD_ERROR; return GNUNET_DB_STATUS_HARD_ERROR;
} }
GNUNET_assert(NULL != ext->config); GNUNET_assert (NULL != ext->config);
config = json_dumps (ext->config, JSON_COMPACT | JSON_SORT_KEYS); config = json_dumps (ext->config, JSON_COMPACT | JSON_SORT_KEYS);
if (NULL == config) if (NULL == config)
@ -142,7 +142,6 @@ set_extensions (void *cls,
} }
static enum GNUNET_GenericReturnValue static enum GNUNET_GenericReturnValue
verify_extensions_from_json ( verify_extensions_from_json (
json_t *extensions, json_t *extensions,
@ -150,7 +149,7 @@ verify_extensions_from_json (
{ {
const char*name; const char*name;
const struct TALER_Extension *extension; const struct TALER_Extension *extension;
size_t i=0; size_t i = 0;
json_t *blob; json_t *blob;
GNUNET_assert (NULL != extensions); GNUNET_assert (NULL != extensions);

View File

@ -658,4 +658,5 @@ TALER_JSON_spec_i18n_str (const char *name,
return ret; return ret;
} }
/* end of json/json_helper.c */ /* end of json/json_helper.c */