bind9/lib/dns
Evan Hunt 81f58e2ea2 enable modules to store data in qctx
- added a 'hookdata' array to qctx to store pointers to up to
  16 blobs of data which are allocated by modules as needed.
  each module is assigned an ID number as it's loaded, and this
  is the index into the hook data array. this is to be used for
  holding persistent state between calls to a hook module for a
  specific query.
- instead of using qctx->filter_aaaa, we now use qctx->hookdata.
  (this was the last piece of filter-aaaa specific code outside the
  module.)
- added hook points for qctx initialization and destruction. we get
  a filter-aaaa data pointer from the mempool when initializing and
  store it in the qctx->hookdata table; return to to the mempool
  when destroying the qctx.
- link the view to the qctx so that detaching the client doesn't cause
  hooks to fail
- added a qctx_destroy() function which must be called after qctx_init;
  this calls the QCTX_DESTROY hook and detaches the view
- general cleanup and comments
2018-12-06 10:29:11 -08:00
..
include enable modules to store data in qctx 2018-12-06 10:29:11 -08:00
rdata isc_mutex_init returns 'void' 2018-11-22 11:51:49 +00:00
tests Don't check the memory leaks in the libdns tests as they hide the cmocka assertion failures 2018-12-04 09:00:42 +01:00
win32 Remove internal dst memory context that was used just for OpenSSL and was passthrough for malloc and free 2018-10-25 08:16:24 +02:00
.gitignore 4394. [func] Add rndc command "dnstap-reopen" to close and 2016-06-24 09:37:04 +10:00
acl.c isc_mutex_init returns 'void' 2018-11-22 11:51:49 +00:00
adb.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
api prep 9.13.4 2018-11-22 00:20:22 +00:00
badcache.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
byaddr.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
cache.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
callbacks.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
catz.c add missing DBC checks for catz and add isc_magic checks; add DBC checks to ht.c 2018-11-29 12:39:20 +11:00
client.c - isc_task_create_bound - create a task bound to specific task queue 2018-11-23 04:34:02 -05:00
clientinfo.c Replace "config.h" with <config.h> 2018-08-16 12:45:59 +02:00
compress.c Remove duplicate config.h 2018-08-08 09:37:30 +02:00
db.c QNAME miminimization should create a separate fetch context for each fetch - 2018-10-23 12:15:04 +00:00
dbiterator.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
dbtable.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
diff.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
dispatch.c - isc_task_create_bound - create a task bound to specific task queue 2018-11-23 04:34:02 -05:00
dlz.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
dns64.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
dnsrps.c silence compiler warning 2018-11-28 12:00:16 -05:00
dnssec.c Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool 2018-11-08 12:21:53 +07:00
dnstap.c isc_mutex_init returns 'void' 2018-11-22 11:51:49 +00:00
dnstap.proto extend DNSTAP to record UPDATE requests and responses as a separate type 2018-10-03 01:03:56 -07:00
ds.c Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
dst_api.c Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool 2018-11-08 12:21:53 +07:00
dst_internal.h Remove internal dst memory context that was used just for OpenSSL and was passthrough for malloc and free 2018-10-25 08:16:24 +02:00
dst_lib.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
dst_openssl.h Use standard OPENSSL_NO_ENGINE instead of custom USE_ENGINE define 2018-05-03 15:32:43 +02:00
dst_parse.c Remove support for obsoleted and insecure DSA and DSA-NSEC3-SHA1 algorithms 2018-10-05 09:21:43 +02:00
dst_parse.h Remove last traces of DSA and NSEC3DSA algorithm, but restore the algnumber -> name mapping 2018-10-26 11:50:11 +02:00
dst_pkcs11.h Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
dst_result.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
dyndb.c set up hooks.c to enable setting hook points and loading modules 2018-12-06 10:29:05 -08:00
ecdb.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
ecs.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
fixedname.c Add a dns_fixedname_initname() helper function 2018-04-09 12:14:16 +02:00
forward.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
gen-unix.h Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
gen-win32.h Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
gen.c don't use 'typename' as it is reserved in C++ 2018-11-14 13:45:20 -05:00
geoip.c Add couple more ISC_UNREACHABLE(); found thanks to coccinelle 2018-11-22 09:28:00 -05:00
gssapi_link.c Remove internal dst memory context that was used just for OpenSSL and was passthrough for malloc and free 2018-10-25 08:16:24 +02:00
gssapictx.c add krb5-selfsub and ms-selfsub 2018-09-10 09:32:31 +10:00
hmac_link.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
ipkeylist.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-08 09:37:28 +02:00
iptable.c Add small tweaks to the code to fix compilation when ISC assertions are disabled 2018-11-08 12:21:53 +07:00
journal.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
key.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
keydata.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-08 09:37:28 +02:00
keytable.c Refactor *_destroy and *_detach functions to unified order of actions. 2018-08-28 13:15:59 +02:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lib.c isc_mutex_init returns 'void' 2018-11-22 11:51:49 +00:00
log.c Move NSID logging to its own category 2018-06-05 12:10:37 +10:00
lookup.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
Makefile.in Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
mapapi begin preparation for 9.13.0 2018-05-21 11:50:38 -07:00
master.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
masterdump.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
message.c refactor filter-aaaa implementation 2018-12-06 10:29:10 -08:00
name.c isc_mutex_init returns 'void' 2018-11-22 11:51:49 +00:00
ncache.c Add min-cache-ttl and min-ncache-ttl keywords 2018-11-14 18:24:53 +01:00
nsec.c Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool 2018-11-08 12:21:53 +07:00
nsec3.c Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool 2018-11-08 12:21:53 +07:00
nta.c uninitalize memory read on error path 2018-11-14 15:26:27 -05:00
openssl_link.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
openssldh_link.c convert query_test 2018-11-14 20:17:04 -08:00
opensslecdsa_link.c Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
openssleddsa_link.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
opensslrsa_link.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
order.c Refactor *_destroy and *_detach functions to unified order of actions. 2018-08-28 13:15:59 +02:00
peer.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
pkcs11.c Make OpenSSL mandatory 2018-07-19 12:47:03 -04:00
pkcs11ecdsa_link.c Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
pkcs11eddsa_link.c Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
pkcs11rsa_link.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
portlist.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
private.c Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool 2018-11-08 12:21:53 +07:00
rbt.c Rewrite isc_refcount API to fetch_and_<op>, instead of former <op>_and_<fetch> 2018-08-28 12:15:39 +02:00
rbtdb.c refactor filter-aaaa implementation 2018-12-06 10:29:10 -08:00
rbtdb.h Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
rcode.c Remove last traces of DSA and NSEC3DSA algorithm, but restore the algnumber -> name mapping 2018-10-26 11:50:11 +02:00
rdata.c Record types which support a empty rdata field were not handling the empty rdata field case. 2018-10-30 11:03:02 +11:00
rdatalist.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
rdatalist_p.h Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
rdataset.c refactor filter-aaaa implementation 2018-12-06 10:29:10 -08:00
rdatasetiter.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
rdataslab.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
request.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
resolver.c - isc_task_create_bound - create a task bound to specific task queue 2018-11-23 04:34:02 -05:00
result.c check result tables are complete 2018-11-10 10:30:43 +11:00
rootns.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
rpz.c add missing DBC checks for catz and add isc_magic checks; add DBC checks to ht.c 2018-11-29 12:39:20 +11:00
rriterator.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-08 09:37:28 +02:00
rrl.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
sdb.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
sdlz.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
soa.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-08 09:37:28 +02:00
spnego.asn1 Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
spnego.c Remove duplicate config.h 2018-08-08 09:37:30 +02:00
spnego.h Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
spnego_asn1.c address win32 build issues 2018-05-22 16:32:21 -07:00
spnego_asn1.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
ssu.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
ssu_external.c Ensure that POSIX strerror_r variant is use even when _GNU_SOURCE is enabled by default 2018-08-29 13:31:28 +02:00
stats.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
tcpmsg.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-08 09:37:28 +02:00
time.c Replace custom isc_u?intNN_t types with C99 u?intNN_t types 2018-08-08 09:37:28 +02:00
timer.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
tkey.c Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256 2018-10-25 08:15:42 +02:00
tsec.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
tsig.c Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool 2018-11-08 12:21:53 +07:00
tsig_p.h Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
ttl.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
update.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
validator.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
version.c address win32 build issues 2018-05-22 16:32:21 -07:00
view.c add a parser to filter-aaaa.so and pass in the parameters 2018-12-06 10:29:11 -08:00
xfrin.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
zone.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
zone_p.h Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
zonekey.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
zoneverify.c Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool 2018-11-08 12:21:53 +07:00
zt.c Replace the "mirror" zone option with "type mirror;" 2018-10-24 20:32:55 +02:00