]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
TTL bounds: improve the logic
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 14 Jul 2022 08:53:27 +0000 (10:53 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 13 Dec 2022 09:58:33 +0000 (10:58 +0100)
commita4455c78c47a09e5d30bc6e212b4afb71aff5aab
tree07b8babc969621e1331f66505c6f00501a64eb51
parentbb6e2de2195914c791d76fa56828050468349337
TTL bounds: improve the logic

- apply to first (uncached) answer already
- don't extend over signature validity

Nit: the tests were using too high TTL (RFCs disallow the "sign bit").
It was working because (manual) cache-insertion was applying bounds,
but now the bounds don't get applied anymore, so it would fail.
daemon/cache.test/insert_ns.test.integr/kresd_config.j2
lib/cache/api.c
lib/cache/api.h
lib/dnssec.c
lib/dnssec.h
lib/layer/iterate.c
lib/layer/validate.c
modules/policy/policy.rpz.test.lua