From 9c3ddcbc183a9a96f10cdb14f28258ea61f5f7c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Tue, 27 Jun 2023 18:57:05 +0200 Subject: added TALER_adult_age(struct TALER_AgeMask *mask) --- src/util/age_restriction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util/age_restriction.c') diff --git a/src/util/age_restriction.c b/src/util/age_restriction.c index 839ed7cd5..6f0702298 100644 --- a/src/util/age_restriction.c +++ b/src/util/age_restriction.c @@ -23,6 +23,7 @@ #include "taler_signatures.h" #include #include +#include struct #ifndef AGE_RESTRICTION_WITH_ECDSA @@ -746,7 +747,7 @@ TALER_parse_coarse_date ( /* calculate the limit date for the largest age group */ localtime_r (&(time_t){time (NULL)}, &limit); - limit.tm_year -= TALER_get_lowest_age (mask, 255); + limit.tm_year -= TALER_adult_age (mask); GNUNET_assert (-1 != mktime (&limit)); if ((limit.tm_year < date.tm_year) -- cgit v1.2.3