From 591cefd3159a2982703a81b637fd7887ecef9a7a Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Tue, 16 Nov 2021 14:43:54 +0100 Subject: [age restriction] progress 3/n - remove redundant struct members for age commitment hash - undo pre-mature implementation in taler-exchange-secmod-rsa.c - carry through age restriction parameter for TALER_denom_blind --- src/util/taler-exchange-secmod-rsa.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'src/util/taler-exchange-secmod-rsa.c') diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c index 49b241b21..6bca58f88 100644 --- a/src/util/taler-exchange-secmod-rsa.c +++ b/src/util/taler-exchange-secmod-rsa.c @@ -39,7 +39,6 @@ #include #include #include "taler_error_codes.h" -#include "taler_extensions.h" #include "taler_signatures.h" #include "secmod_common.h" @@ -152,14 +151,6 @@ struct Denomination * Length of (new) RSA keys (in bits). */ uint32_t rsa_keysize; - - /** - * Age Restriction Mask. - * If non-zero, it defines the age restriction groups that apply to this - * denomination. - */ - struct TALER_AgeMask age_mask; - }; @@ -1433,7 +1424,7 @@ parse_key (struct Denomination *denom, struct DenominationKey *before; TALER_denom_priv_to_pub (&priv, - denom->age_mask, + (struct TALER_AgeMask) { .mask = 0 }, /* FIXME-Oec */ &pub); dk = GNUNET_new (struct DenominationKey); dk->denom_priv = priv; @@ -1653,21 +1644,6 @@ parse_denomination_cfg (const char *ct, } denom->rsa_keysize = (unsigned int) rsa_keysize; denom->section = GNUNET_strdup (ct); - - /* Load the (optional) age groups/mask for this denomination */ - denom->age_mask.mask = 0; - if (GNUNET_YES != GNUNET_CONFIGURATION_get_value_yesno (kcfg, ct, - "age-restricted")) - { - if (GNUNET_OK != TALER_get_age_mask (kcfg, &denom->age_mask)) - { - GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, - "extenstions", - "age-restriction", - "invalid age groups"); - return GNUNET_SYSERR; - } - } return GNUNET_OK; } -- cgit v1.2.3