]> git.ipfire.org Git - thirdparty/pdns.git/commit
Stricter ZoneName usage.
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 16 Apr 2025 08:15:18 +0000 (10:15 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 23 Apr 2025 14:42:18 +0000 (16:42 +0200)
commitab319bd3eac77cb321d71964ba237ae1e238db49
tree454cd1b48d6a9e23f829abc9c8631264f88ea08c
parent7ea39f5e39badb4c7fbcf6c89fe2dadc7b1464a4
Stricter ZoneName usage.

While ZoneName is still equivalent to DNSName, this commit turns it into a
separate class (with the same interface as DNSName), and requires conversion
between these classes to be explicit, so that we can recognize the
DNSName/ZoneName boundaries and change them as needs arise.

It is intended for these explicit conversion requirements to be only temporary,
which would allow all these ".operator const DNSName&()" calls to get removed
eventually, once the dust settles and our trust it proper use of ZoneName versus
DNSName is strong enough.
46 files changed:
modules/bindbackend/bindbackend2.cc
modules/geoipbackend/geoipbackend.cc
modules/ldapbackend/native.cc
modules/lmdbbackend/lmdbbackend.cc
modules/lmdbbackend/lmdbbackend.hh
modules/lua2backend/lua2api2.hh
modules/remotebackend/remotebackend.hh
pdns/auth-catalogzone.cc
pdns/auth-catalogzone.hh
pdns/auth-primarycommunicator.cc
pdns/auth-secondarycommunicator.cc
pdns/axfr-retriever.cc
pdns/backends/gsql/gsqlbackend.cc
pdns/backends/gsql/ssql.hh
pdns/dbdnsseckeeper.cc
pdns/dnsbackend.cc
pdns/dnsname.cc
pdns/dnsname.hh
pdns/dnssecsigner.cc
pdns/fuzz_zoneparsertng.cc
pdns/ixfrdist-stats.hh
pdns/ixfrdist.cc
pdns/ixfrutils.cc
pdns/ixplore.cc
pdns/logger.cc
pdns/logger.hh
pdns/lua-auth4.cc
pdns/lua-base4.cc
pdns/lua-record.cc
pdns/misc.hh
pdns/packethandler.cc
pdns/packethandler.hh
pdns/pdnsutil.cc
pdns/rcpgenerator.cc
pdns/rfc2136handler.cc
pdns/serialtweaker.cc
pdns/tcpreceiver.cc
pdns/test-ueberbackend_cc.cc
pdns/ueberbackend.cc
pdns/ws-api.cc
pdns/ws-api.hh
pdns/ws-auth.cc
pdns/zone2ldap.cc
pdns/zonemd.cc
pdns/zoneparser-tng.cc
pdns/zoneparser-tng.hh