summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* RELEASE-CHECKLIST: Check that tarball is equal to git treeIan Jackson2014-10-26
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* RELEASE-CHECKLIST: Non-real mode (the default, now)Ian Jackson2014-10-26
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* RELEASE-CHECKLIST: Require version argumentIan Jackson2014-10-26
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Config parsing: Provide a way to ignore unknown resolv.conf contentsIan Jackson2014-10-26
| | | | | | | You can now set the option `adns_ignoreunkcfg'. This is relevant to Debian #411263. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Config parsing: Ignore some BIND9-specific resolv.conf optionsIan Jackson2014-10-26
| | | | | | Debian #411263. I also read wheezy's resolv.conf(5). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* resolv.conf parser: Avoid duplicating lengths in option parserIan Jackson2014-10-26
| | | | | | | | | Replace a lot of things like `l>=5 && memcmp(word,"debug",5)' with use of some new macros. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* API: Reject unknown flagsIan Jackson2014-10-26
| | | | | | | | | | | | | | | | | | | | | | | | Check for unknown flags in adns_initflags, adns_queryflags, and adns_rrtype. This will allow us to extend the API in the future but still retain backward-ABI-safety: new applications which pass a new flag but are run against old adns will get an error (typically, ENOSYS). In each case we reserve a few of the spare bits for `harmless' extensions: flags which we decide, at the time of introduction, that it is harmless for old implementations to ignore. We simply provide explicit hex values for the flags. This is easier than listing all of the actually-defined flags, and probably no less reliable. Failing to add a new flag to the check as well as to the enum will produce an obvious error (unless the `harmless' flag is used - and those are at the top of the space to reduce that probability). In the case of adns_rrtype, all of the external functions quickly pass the type to adns__findtype, so we can do the check there. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Make internal function vbuf__append_quoted1035 staticIan Jackson2014-10-26
| | | | | | This does not change the library ABI - the only callers are internal. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Remove RCSids.Ian Jackson2014-10-24
| | | | | | | We are using git now and it doesn't do this kind of thing. They are a pain, anyway. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Build system: Add test case output and common.make to `make [dist]clean'.Ian Jackson2014-10-24
| | | | | | (Cherry-picked from Debian's adns dgit/experimental branch.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Build system: Bodge regress/Makefile.in's .SECONDARY some moreIan Jackson2014-10-24
| | | | | | | | | | | | | | | | | | | | | | The declaration mentioning CLIENTS has an unfortunate side-effect: it `mentions' the file adnshost_c.o, which is not part of the build and is not buildable. According to the rules in `(make)Implicit Rule Search' this causes make to try to build adnshost_playback from adnshost_c.o (rule 5). This is because files whose names are `mentioned' are taken to `ought to exist'. This causes adns to be unbuildable on the make from Debian sid (4.0-8); it is not visible on earlier makes (eg 3.81-8.2) because they don't appear to actually follow the documented algorithm. Bodge this (further) by filtering adnshost out of the client list. It is currently the only client made out of multiple object files. (Cherry-picked from Debian's adns dgit/experimental branch.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* regress: Use new combined hex syntax for adnstest typesIan Jackson2014-10-24
| | | | | | | | | | | | | | | | | | | | | | | This makes the tests clearer to read. No functional change. Change was made with for f in regress/*.sys; do perl -i~ -p ../t.pl $f; done where t.pl is this script if ($.==1) { $at=m{^(?:\./)?adnstest\b}; } if ($at && $.==2 && m/^:/) { m/^:(\S+)/ or die; $r=$'; #'; $_=$1; s{\b(\d+)\b}{ sprintf "0x%x|%d", ($1 & ~0xffff), ($1 & 0xffff) }ge; $_=":$_$r"; } Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* adnstest: Support typenum being 0xXX|DDDIan Jackson2014-10-24
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* API: Provide adns_qf_cname_strictIan Jackson2014-10-24
| | | | | | | | | | | In the medium term we want to make adns tolerate cname chains better. One thing we want to do is to change the default to be adns_qf_cname_loose. So introduce a flag now that allows applications to explicitly request strict. For now this new flag has no effect. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* enums: Add `sizeforce' member valueIan Jackson2014-10-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The C standard helpfully permits enums with a small range of values to be short. This effect is not desirable in an API because it means that adding new values (new flags, say) may cause ABI incompatibility. Add some `sizeforce' members to relevant enums in the API. In none of the three cases do we expect this to actually cause an ABI break on actual practical platforms, because the values we choose are within the same power-of-two bitwidth. Specifically: max value in adns 1.4 new max value adns_initflags 0x0300 0x7fff adns_queryflags 0x0ff00000 0x7fffffff adns_rrtype 0x20000 0x7fffffff adns_status 499 unchanged The small max value of adns_initflags is unfortunate. But we can't change it without actually breaking the ABI on actual existing platforms. We can put off biting that bullet until we run out of initflags - there are still three flags remaining. This patch is not expected to have any practical effect with existing platforms and compilers but it makes the code more correct and less likely to be misoptimised by a future aggressive compiler. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* .gitignore: Ignore GPG signatureIan Jackson2014-10-24
|
* Update version numbers to be between releasesIan Jackson2014-10-24
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* RELEASE-CHECKLIST: Say to update versions after doing releaseIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* RELEASE-CHECKLIST: wip, as used for 1.5.0~rc0Ian Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* README.html: Web page management changesIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Versions: update to 1.5.0 RC0Ian Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* NEWS: More updatesIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* NEWS: Remove "pleased to announce" - should be in mailIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* README.html: Abolish dead link to BINDIan Jackson2014-10-20
|
* README.html: mention signatures as possibly being on the web pageIan Jackson2014-10-20
|
* Build system: Provide `web-install' targetIan Jackson2014-10-20
| | | | | | This copies the various website files to WEBDIR. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* adns.h: Generalise some mentions of A RRs.Ian Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Build system: Break out common.make[.in]Ian Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Build system: Know how to build adnshost.txtIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: Reorder slightlyIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Build system: Do not include Makefile and src/config.h in distribution tarballIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: More updatesIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* NEWS: Draft release notes for 1.5.0~rc0Ian Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* .gitignore: Add autom4te.cacheIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Build system: update configure to autoconf 2.69Ian Jackson2014-10-20
| | | | | | Ran `configure' on Debian wheezy i386. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Licensing: Abolish `proprietary' part in GPL-vs-LGPLIan Jackson2014-10-20
| | | | | | | | | Having accepted substantial contributions I am no longer in a position to offer this. And anyway the offer was mostly there to put people off asking for something for nothing - no-one actually ever offered me money. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Licensing: Abolish LICENCE.WAIVERSIan Jackson2014-10-20
| | | | | | | The only existing waiver was for the AGPL, and the GPLv3 which we are now using has an AGPL-compatibility clause already in it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Licensing: Add copyright for Mark WoodingIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Licensing: Update copyright dates for Ian JacksonIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Licensing: Delete FSF address from INSTALLIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Licensing: Copy GPL-3 into COPYINGIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Licensing: Delete FSF street addressIan Jackson2014-10-20
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Licensing: Update version in file header commentsIan Jackson2014-10-19
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* changelog: Update with changes so farIan Jackson2014-10-19
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Remove cvs-to-git conversion scriptIan Jackson2014-10-19
| | | | | | This has now done its work and is no longer needed. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Makefile.in: Fix "make dist" for gitIan Jackson2014-10-19
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Documentation and webpage updatesIan Jackson2014-10-19
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Makefile.in: update DISTVERSIONIan Jackson2014-10-19
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* src/types.c: Clarify comment for addr_submit (style)Ian Jackson2014-10-19
| | | | | | We don't just fiddle with tinfo; this function actually sets it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* src/types.c: Rewrite pap_addr (style)Ian Jackson2014-10-19
| | | | | | | | | | | | | Completely rework this function to make it much clearer. Also rename many of the surviving variables. No functional change. The following rune was helpful to me when preparing this patch: diff -bu <(git-show HEAD:src/types.c | perl -pe 's/\bstoreto\b/out/g; s/\bmax\b/cbyte_max/g; s/\boaddr\b/use_addr/; s/\bsalen\b/out_salen/g; s/\bstep\b/in_addrlen/g; s/\baf\b/out_af/g; s/\brrsz\b/out_rrsz/g; s/\brrty\b/in_rrty/g') src/types.c |less +/pap_addr Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>