aboutsummaryrefslogtreecommitdiff
path: root/src/util/age_restriction.c
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2023-06-27 18:57:05 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2023-06-27 18:57:05 +0200
commit9c3ddcbc183a9a96f10cdb14f28258ea61f5f7c5 (patch)
treefdf88fe8e5f2af2ff75fb5f67f03ccdf509ef914 /src/util/age_restriction.c
parent537206e49f7ccc32551ea894547ee1583ea244ef (diff)
downloadexchange-9c3ddcbc183a9a96f10cdb14f28258ea61f5f7c5.tar.xz
added TALER_adult_age(struct TALER_AgeMask *mask)
Diffstat (limited to 'src/util/age_restriction.c')
-rw-r--r--src/util/age_restriction.c3
1 files changed, 2 insertions, 1 deletions
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 <gnunet/gnunet_json_lib.h>
#include <gcrypt.h>
+#include <stdint.h>
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)