diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-04-07 19:42:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-04-07 19:42:19 +0200 |
commit | 4786cc6172c036067a5b5d8eeded7f42a77975a6 (patch) | |
tree | b0c6a87376a9e9516ae2a9ca18fcc449080df3d5 /src/mhd | |
parent | b161b36af2f2f68bc8155dd0f97977100f6e3148 (diff) | |
download | exchange-4786cc6172c036067a5b5d8eeded7f42a77975a6.tar.xz |
eliminate cache expiration distinguisher from /terms
Diffstat (limited to 'src/mhd')
-rw-r--r-- | src/mhd/mhd_legal.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mhd/mhd_legal.c b/src/mhd/mhd_legal.c index 5a600953e..59e866849 100644 --- a/src/mhd/mhd_legal.c +++ b/src/mhd/mhd_legal.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2019, 2020, 2022 Taler Systems SA + Copyright (C) 2019, 2020, 2022, 2024 Taler Systems SA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -187,6 +187,12 @@ TALER_MHD_reply_legal (struct MHD_Connection *conn, a = GNUNET_TIME_relative_to_absolute (MAX_TERMS_CACHING); m = GNUNET_TIME_absolute_to_timestamp (a); + /* Round up to next full day to ensure the expiration + time does not become a fingerprint! */ + a = GNUNET_TIME_absolute_round_down (a, + MAX_TERMS_CACHING); + a = GNUNET_TIME_absolute_add (a, + MAX_TERMS_CACHING); TALER_MHD_get_date_string (m.abs_time, dat); GNUNET_log (GNUNET_ERROR_TYPE_INFO, |