summaryrefslogtreecommitdiff
path: root/usr.bin/dig
AgeCommit message (Collapse)Author
2020-05-10fix socket_log() calls, EVENT expands to three comma separatedOtto Moerbeek
values; spotted by gcc; ok florian@
2020-05-08Make sure cmsgbufs are properly aligned by using the idiom from theOtto Moerbeek
CMSG_DATA man page. Avoids SIGBUS on landisk; ok kettenis@ jca@
2020-04-28Rather than attempting to lookup the keyword "set" as a hostname,Theo de Raadt
issue a usage message. This matches both historical behaviour, and the operation upon other keywords. ok florian
2020-04-02Replace a bunch of hand rolled date / time math with gmtime(3).Florian Obser
While here fix dns_time64_from32() to correctly deal with unsigned 32 bit cyclic time that I accidentally broke when I switched "now" from isc_std_time (unsiged 32 bit) to time_t (64 bit). input kettenis, millert, otto, cheloha OK cheloha
2020-03-27unused constantsFlorian Obser
2020-02-26no need to go through RETERR when we return a constantFlorian Obser
2020-02-26In preparation of compiling lib/dns/rdata/ files individually we needFlorian Obser
global visibility of str_totext. Rename it to isc_str_tobuffer, put it into buffer.c and delete duplicate implementations.
2020-02-26In preparation of compiling lib/dns/rdata/ files individually we needFlorian Obser
global visibility of mem_tobuffer. Rename it to isc_mem_tobuffer, put it into buffer.c and delete duplicate implementations.
2020-02-26Always printing unknown types as TYPE%u and not sometimes as %uFlorian Obser
considerably simplifies dns_rdatatype_attributes() since we then only care about reserved types. tweaks jsg
2020-02-26Rewrite dns_rdatatype_fromtext to use a binary search over a staticFlorian Obser
array.
2020-02-25use timingsafe_bcmp and get rid of now unused safe.cFlorian Obser
2020-02-25use freezero() rather that explicit_bzero() when free() is immediatelyTheo de Raadt
after. pointed out by jsing
2020-02-25traditional nslookup would not fatal if the server name was undiscoverable.Theo de Raadt
change lower level code to return an error, and bump the fatal for host(1) upwards, then tweak nslookup to work nicely
2020-02-25malloc(a * b) -> reallocarray(NULL, a, b)Theo de Raadt
ok jsing jca florian
2020-02-25unused fileFlorian Obser
2020-02-25declare isc_appctx_t once where it is usedJonathan Gray
Should fix typedef redefinition build error on gcc3 reported by aoyama@. ok florian@
2020-02-25Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.Florian Obser
OK jung
2020-02-25reduce multiple newlinesJonathan Gray
2020-02-25remove some unused typedefsJonathan Gray
2020-02-25remove some unused definesJonathan Gray
2020-02-24Stop generating rdatastruct.h and put the dns_rdata_* structs forFlorian Obser
cname, ns, soa, and tsig directly into rdata.h
2020-02-24Delete a few more fromstruct_*, tostruct_* and freestruct_* functionsFlorian Obser
missed in previous. Also delete now unused utility functions.
2020-02-24We only need to create cname, ns, soa and tsig structs.Florian Obser
OK jsg
2020-02-24We only need to fill a wire format buffer from soa and tsig structs.Florian Obser
OK jsg
2020-02-24We only need to free cname, ns, soa and tsig structs.Florian Obser
OK jsg
2020-02-24We are never required to "render glue first" since we just print whatFlorian Obser
we get from the net.
2020-02-24dead store, pointed out by scan buildFlorian Obser
2020-02-24totext_filter_proc is always null, remove.Florian Obser
2020-02-24remove some unused codeJonathan Gray
ok florian@
2020-02-24remove some uneeded includesJonathan Gray
2020-02-24We only need to check the owner for nsec3 records, remove all theFlorian Obser
rest. OK jung
2020-02-24We are always preserving the order of records.Florian Obser
This lets us remove compare_* and casecompare_* functions from RR types. OK jung
2020-02-24Stop generating DNS class and type enums.Florian Obser
OK jsg, jung
2020-02-24Fix 'previously declared here' error on gcc3(luna88k).Kenji Aoyama
ok jsg@ florian@ jung@
2020-02-23remove some unused functionsJonathan Gray
ok jung@
2020-02-23rmeove more unused functions and codeJoerg Jung
ok florian
2020-02-23remove unused parts of types.hJonathan Gray
ok jung@ florian@
2020-02-23We never request to clone the buffer from the message parser.Florian Obser
OK millert
2020-02-23We are not passing options to the message renderer.Florian Obser
OK millert
2020-02-23Partial rendering was never implemented.Florian Obser
OK millert
2020-02-23Remove unused fields from struct dst_key and stop passing name andFlorian Obser
rdclass around. OK millert, jung
2020-02-23hmacs do not support NULL keysFlorian Obser
OK millert, jung
2020-02-23All key funcs are populated, skip NULL check.Florian Obser
While here remove *_isprivate since it is always true. OK millert, jung
2020-02-23createctx2, verify2, and cleanup are always NULL.Florian Obser
OK millert, jung
2020-02-23Remove unused hmac functions from struct dst_func which in turn letsFlorian Obser
us delete parsing of private keys from files. OK millert, jung
2020-02-23remove unused structsJonathan Gray
2020-02-23remove unused dns_rdatacallbacks struct and typedefJonathan Gray
2020-02-22remove various unused macrosJoerg Jung
ok florian
2020-02-22remove some unused args and unused assignments, as resultJoerg Jung
msgblock_free() becomes just free() also add UNUSED() for some dns_message *msg args for later revisit and cleanup ok millert florian
2020-02-22remove assigned but unused valuesJoerg Jung
ok millert florian