diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2021-12-23 15:15:33 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2021-12-23 15:15:33 +0100 |
commit | 1b23857f2cb56f4aa95a07d7c52bd48abc20b73b (patch) | |
tree | c13076f2420d8a3d28d256368a6c9477b8391cf7 /src/exchange/taler-exchange-httpd_keys.c | |
parent | 62444504f78976137569d635b34fdbedeb6ccc5c (diff) |
[age restriction] progress 8/n
More work towards support for extensions and age restriction
- updated gana
- added handler for DB-Event
- added TEH_extensions_init() and _done()
- added global for age restriction
- added stub for post handler
- added SQL-table for extension metadata
- added enum type for extensions and other data structures
Also:
- fixed some warnings -Wmaybe-unitialized
Diffstat (limited to 'src/exchange/taler-exchange-httpd_keys.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_keys.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_keys.c b/src/exchange/taler-exchange-httpd_keys.c index e471e733..a9cd864a 100644 --- a/src/exchange/taler-exchange-httpd_keys.c +++ b/src/exchange/taler-exchange-httpd_keys.c @@ -750,7 +750,7 @@ load_age_mask (const char*section_name) struct TALER_AgeMask age_mask = {0}; /* FIXME-oec: get age_mask from database, not from config */ - if (TALER_EXTENSION_OK != TALER_get_age_mask (TEH_cfg, &age_mask)) + if (TALER_Extension_OK != TALER_get_age_mask (TEH_cfg, &age_mask)) { GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, TALER_EXTENSION_SECTION_AGE_RESTRICTION, @@ -761,6 +761,9 @@ load_age_mask (const char*section_name) if (age_mask.mask == 0) { + /* Age restriction support is not enabled. Ignore the AGE_RESTRICTED field + * for the particular denomination and simply return the null_mask + */ return null_mask; } |