From: Mark Wooding Date: Sat, 31 May 2014 16:26:34 +0000 (+0100) Subject: src/: Change how query domain names are checked. X-Git-Tag: make-bug.2014-07-26~42 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/commitdiff_plain/e8e5aeacbdaf5654974626d548f30a4c86e5ced6?hp=e8e5aeacbdaf5654974626d548f30a4c86e5ced6 src/: Change how query domain names are checked. The `qdparselabel' hook is no more. Unescaping of the query domain is now done in one place, and always in the same way. Checking of the domain name is done through a new `checklabel' hook, with a more convenient interface. The checklabel hook does not have the original possibly-escaped version of the query domain available to it; it can only check the name being submitted on the wire, not the form in which it was provided to the library. This eliminates the inconsistency in SRV record handling, where \095http._tcp.distorted.org.uk is acceptable, but _\104ttp._tcp.distorted.org.uk is not. It also now prohibits SRV queries on `_wrong', which I think was always intended but didn't actually work. All queries are checked, including internally generated ones, so this can be used to store information about the query domain for later use, so we let the hook store information in the qcontext structure. Signed-off-by: Mark Wooding ---