From 54c62f3ab9a38f734601e3af3bfa97b3587dd634 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Wed, 1 Dec 2021 15:25:33 +0100 Subject: [age restriction] progress 6/n lift logic for detection of age restriction of a denomination out from taler-exchange-secmod-rsa.c to taler-exchange_httpd_keys.c --- src/include/taler_exchangedb_plugin.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/include/taler_exchangedb_plugin.h') diff --git a/src/include/taler_exchangedb_plugin.h b/src/include/taler_exchangedb_plugin.h index 47504e51..9a1dc78b 100644 --- a/src/include/taler_exchangedb_plugin.h +++ b/src/include/taler_exchangedb_plugin.h @@ -630,9 +630,20 @@ struct TALER_EXCHANGEDB_DenominationKeyMetaData struct TALER_Amount fee_refund; /** - * Indication if age restriction is set for this denomination + * Age restriction for the denomination. (can be zero). If not zero, the bits + * set in the mask mark the edges at the beginning of a next age group. F.e. + * for the age groups + * 0-7, 8-9, 10-11, 12-14, 14-15, 16-17, 18-21, 21-* + * the following bits are set: + * + * 31 24 16 8 0 + * | | | | | + * oooooooo oo1oo1o1 o1o1o1o1 ooooooo1 + * + * A value of 0 means that the denomination does not support the extension for + * age-restriction. */ - bool age_restricted; + struct TALER_AgeMask age_restrictions; }; -- cgit v1.2.3