]> git.ipfire.org Git - thirdparty/bind9.git/commit
DoH: Add isc_nm_set_min_answer_ttl()
authorArtem Boldariev <artem@boldariev.com>
Wed, 6 Oct 2021 11:09:53 +0000 (14:09 +0300)
committerArtem Boldariev <artem@boldariev.com>
Fri, 5 Nov 2021 12:14:59 +0000 (14:14 +0200)
commit80482f8d3e42edcfbd98eec61f1760205c2e15e9
treeb1a1ca4afeb61617988023a52292adfa118ab033
parentb69dfd6a7503ebb02496e115c3c05cbbf5f5f4bc
DoH: Add isc_nm_set_min_answer_ttl()

This commit adds an isc_nm_set_min_answer_ttl() function which is
intended to to be used to give a hint to the underlying transport
regarding the answer TTL.

The interface is intentionally kept generic because over time more
transports might benefit from this functionality, but currently it is
intended for DoH to set "max-age" value within "Cache-Control" HTTP
header (as recommended in the RFC8484, section 5.1 "Cache
Interaction").

It is no-op for other DNS transports for the time being.
lib/isc/include/isc/netmgr.h
lib/isc/netmgr/http.c
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c