Evan Hunt
a8baf79e33
append "0" to IPv6 addresses ending in "::" when printing YAML
...
such addresses broke some YAML parsers.
2020-06-25 16:42:13 -07:00
Mark Andrews
b144ae1bb0
Report Extended DNS Error codes
2020-05-12 22:01:54 +10:00
Evan Hunt
735be3b816
remove or comment empty conditional branches
...
some empty conditional branches which contained a semicolon were
"fixed" by clang-format to contain nothing. add comments to prevent this.
2020-03-17 13:28:15 -07:00
Evan Hunt
ba0313e649
fix spelling errors reported by Fossies.
2020-02-21 15:05:08 +11:00
Ondřej Surý
5777c44ad0
Reformat using the new rules
2020-02-14 09:31:05 +01:00
Evan Hunt
e851ed0bb5
apply the modified style
2020-02-13 15:05:06 -08:00
Ondřej Surý
056e133c4c
Use clang-tidy to add curly braces around one-line statements
...
The command used to reformat the files in this commit was:
./util/run-clang-tidy \
-clang-tidy-binary clang-tidy-11
-clang-apply-replacements-binary clang-apply-replacements-11 \
-checks=-*,readability-braces-around-statements \
-j 9 \
-fix \
-format \
-style=file \
-quiet
clang-format -i --style=format $(git ls-files '*.c' '*.h')
uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h')
clang-format -i --style=format $(git ls-files '*.c' '*.h')
2020-02-13 22:07:21 +01:00
Ondřej Surý
36c6105e4f
Use coccinelle to add braces to nested single line statement
...
Both clang-tidy and uncrustify chokes on statement like this:
for (...)
if (...)
break;
This commit uses a very simple semantic patch (below) to add braces around such
statements.
Semantic patch used:
@@
statement S;
expression E;
@@
while (...)
- if (E) S
+ { if (E) { S } }
@@
statement S;
expression E;
@@
for (...;...;...)
- if (E) S
+ { if (E) { S } }
@@
statement S;
expression E;
@@
if (...)
- if (E) S
+ { if (E) { S } }
2020-02-13 21:58:55 +01:00
Ondřej Surý
f50b1e0685
Use clang-format to reformat the source files
2020-02-12 15:04:17 +01:00
Ondřej Surý
66af8713d8
lib/dns/rdata/*/*.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck
...
Cppcheck gets confused by:
void bar(void *arg) {
foo *data = arg;
REQUIRE(source != NULL);
REQUIRE(data->member != NULL);
}
and for consistency the DbC check needs to be changed to
void bar(void *arg) {
foo *data = arg;
REQUIRE(data != NULL);
REQUIRE(data->member != NULL);
}
2019-10-03 09:04:26 +02:00
Mark Andrews
d98f446d3f
Add support for displaying EDNS option LLQ.
2019-08-28 16:13:43 +10:00
Witold Kręcicki
a8e2ca6f7d
Remove UNSPEC rrtype
2019-05-13 10:05:03 +07:00
Mark Andrews
ee7cf180b3
Recognise EDNS Client Tag and EDNS Server Tag
2019-05-09 17:29:23 +10:00
Mark Andrews
1722728c80
enforce known SSHFP finger print lengths
2019-05-09 08:11:43 +10:00
Mark Andrews
d8798098e8
support printing AAAA in expanded form
2019-05-06 21:50:38 -07:00
Mark Andrews
b274f3fad7
enforce DS hash exists
2019-04-10 13:36:08 +10:00
Mark Andrews
82d4931440
for rkey flags MUST be zero
2019-04-09 13:55:30 +10:00
Mark Andrews
2592e91516
check flags for no key in fromwire for *KEY
2019-04-09 13:55:30 +10:00
Mark Andrews
473987d8d9
Disallow empty ZONEMD hashes
...
This change is the result of discussions with the authors of
draft-wessels-dns-zone-digest.
2019-03-22 06:49:01 +11:00
Mark Andrews
40a770b932
add brackets for multi-line output
2019-03-21 19:52:27 +11:00
Tony Finch
0f219714e1
cleanup: use dns_secalg_t and dns_dsdigest_t where appropriate
...
Use them in structs for various rdata types where they are missing.
This doesn't change the structs since we are replacing explicit
uint8_t field types with aliases for uint8_t.
Use dns_dsdigest_t in library function arguments.
Improve dnssec-cds with these more specific types.
2019-03-08 18:37:50 +11:00
Mark Andrews
a9fadafecd
fix AMTRELAY name
2019-02-08 13:54:13 +11:00
Evan Hunt
3183663dd4
Add support for ZONEMD
2019-02-07 12:34:14 -08:00
Mark Andrews
66922ee7af
Add support for ATMRELAY
2019-02-07 10:28:19 -08:00
Mark Andrews
5e8b772ad1
Ensure base64/base32/hex fields in DNS records that should be non-empty are.
2019-01-09 18:04:21 +11:00
Mark Andrews
f4ceb12b69
create dns_rdatatype_atcname to split records that can appear along side CNAME from DNSSEC; dns_rdatatype_iszonecutauth allowed too many types
2018-12-14 12:48:55 +11:00
Ondřej Surý
e69dc0dbc7
Remove RSAMD5 support
2018-12-11 11:32:24 +01:00
Ondřej Surý
2f3eee5a4f
isc_mutex_init returns 'void'
2018-11-22 11:51:49 +00:00
Ondřej Surý
175f06949f
Use strlcpy in place where strncpy(s, ...) + s[sizeof(s)-1] = \0; was used
2018-11-19 07:58:48 +01:00
Ondřej Surý
29c45200e7
Add extra return failure after INSIST(0) in default branch
2018-11-08 12:22:17 +07:00
Ondřej Surý
4eaf927571
Use larger buffers on snprintf buffer overflow false positives
2018-11-08 12:21:53 +07:00
Ondřej Surý
b2b43fd235
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
2018-11-08 12:21:53 +07:00
Mark Andrews
cf83016682
compare_nxt compared records with identical next fields case insensitively
2018-10-30 14:51:39 +11:00
Mark Andrews
fbab100426
Add support for EID and NIMLOC
2018-10-25 15:20:33 -07:00
Ondřej Surý
7fd3dc63de
Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256
2018-10-25 08:15:42 +02:00
Mark Andrews
f9ceddd8ca
Add support for ATMA
2018-10-25 13:21:49 +11:00
Evan Hunt
b4dca44ad2
fix chaosnet address comparison
2018-09-28 00:42:03 -07:00
Mark Andrews
ac1c3aaa27
only emit a single space between mac length and the orginal id if the mac length is zero
2018-09-27 16:34:49 -04:00
Ondřej Surý
994e656977
Replace custom isc_boolean_t with C standard bool type
2018-08-08 09:37:30 +02:00
Ondřej Surý
cb6a185c69
Replace custom isc_u?intNN_t types with C99 u?intNN_t types
2018-08-08 09:37:28 +02:00
Mark Andrews
63c9ec367f
use tlsa and smime structs to set common values
2018-08-01 18:15:08 -04:00
Mark Andrews
6e06d3e7c6
remove re-initalisation of common structure
2018-07-12 09:37:13 +10:00
Mark Andrews
3ba1d1e43b
fix casecompare return type for ninfo, tkey, txt
2018-06-24 22:48:59 -04:00
Ondřej Surý
27593e65dc
Remove support for obsoleted ECC-GOST (GOST R 34.11-94) algorithm
2018-06-05 09:14:14 +02:00
Mukund Sivaraman
d4ea1edd2c
Don't insert 2nd space between NSEC3 nexthash and typemap fields
2018-06-04 12:21:48 +10:00
Ondřej Surý
55a10b7acd
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
2018-05-11 13:17:46 +02:00
Michał Kępień
172d0c401e
Address GCC 8 -Wformat-truncation warnings
2018-05-10 10:35:01 +02:00
Tony Finch
286a7b6b9a
Allow TTL values when configuring TTLs and time intervals.
...
Options updated to use ttlvals: max-cache-ttl, max-ncache-ttl,
max-policy-ttl, fstrm-set-reopen-interval, interface-interval, and
min-update-interval.
2018-04-13 11:46:06 -07:00
Ondřej Surý
20d145efef
Replace isc_string_touint64 with strtoull (C99)
2018-04-12 10:37:33 +02:00
Witold Kręcicki
c8aa1ee9e6
libdns refactoring: get rid of multiple versions of dns_dt_create, dns_view_setcache, dns_zt_apply, dns_message_logfmtpacket, dns_message_logpacket, dns_ssutable_checkrules and dns_ttl_totext
2018-04-06 08:04:41 +02:00