summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix socket_log() calls, EVENT expands to three comma separatedotto2020-05-101-4/+4
| | | | values; spotted by gcc; ok florian@
* Make sure cmsgbufs are properly aligned by using the idiom from theotto2020-05-081-5/+15
| | | | CMSG_DATA man page. Avoids SIGBUS on landisk; ok kettenis@ jca@
* Replace a bunch of hand rolled date / time math with gmtime(3).florian2020-04-022-87/+24
| | | | | | | | | 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
* unused constantsflorian2020-03-271-16/+1
|
* no need to go through RETERR when we return a constantflorian2020-02-265-22/+22
|
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-2659-524/+426
| | | | | | global visibility of str_totext. Rename it to isc_str_tobuffer, put it into buffer.c and delete duplicate implementations.
* In preparation of compiling lib/dns/rdata/ files individually we needflorian2020-02-2663-228/+178
| | | | | | global visibility of mem_tobuffer. Rename it to isc_mem_tobuffer, put it into buffer.c and delete duplicate implementations.
* Always printing unknown types as TYPE%u and not sometimes as %uflorian2020-02-2679-458/+63
| | | | | | considerably simplifies dns_rdatatype_attributes() since we then only care about reserved types. tweaks jsg
* Rewrite dns_rdatatype_fromtext to use a binary search over a staticflorian2020-02-262-258/+125
| | | | array.
* use timingsafe_bcmp and get rid of now unused safe.cflorian2020-02-256-86/+13
|
* use freezero() rather that explicit_bzero() when free() is immediatelyderaadt2020-02-252-14/+8
| | | | | after. pointed out by jsing
* malloc(a * b) -> reallocarray(NULL, a, b)deraadt2020-02-259-44/+24
| | | | ok jsing jca florian
* unused fileflorian2020-02-251-59/+0
|
* declare isc_appctx_t once where it is usedjsg2020-02-252-9/+2
| | | | | Should fix typedef redefinition build error on gcc3 reported by aoyama@. ok florian@
* Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.florian2020-02-252-36/+360
| | | | OK jung
* reduce multiple newlinesjsg2020-02-25120-604/+91
|
* remove some unused typedefsjsg2020-02-253-21/+2
|
* remove some unused definesjsg2020-02-251-15/+0
|
* Stop generating rdatastruct.h and put the dns_rdata_* structs forflorian2020-02-2485-2561/+47
| | | | cname, ns, soa, and tsig directly into rdata.h
* Delete a few more fromstruct_*, tostruct_* and freestruct_* functionsflorian2020-02-246-356/+4
| | | | missed in previous. Also delete now unused utility functions.
* We only need to create cname, ns, soa and tsig structs.florian2020-02-2478-2239/+134
| | | | OK jsg
* We only need to fill a wire format buffer from soa and tsig structs.florian2020-02-2480-1545/+128
| | | | OK jsg
* We only need to free cname, ns, soa and tsig structs.florian2020-02-2478-791/+117
| | | | OK jsg
* We are never required to "render glue first" since we just print whatflorian2020-02-242-39/+2
| | | | we get from the net.
* dead store, pointed out by scan buildflorian2020-02-241-11/+1
|
* totext_filter_proc is always null, remove.florian2020-02-242-21/+2
|
* remove some unused codejsg2020-02-248-399/+6
| | | | ok florian@
* remove some uneeded includesjsg2020-02-2416-58/+32
|
* We only need to check the owner for nsec3 records, remove all theflorian2020-02-2482-1033/+61
| | | | | rest. OK jung
* We are always preserving the order of records.florian2020-02-2483-2496/+86
| | | | | | This lets us remove compare_* and casecompare_* functions from RR types. OK jung
* Stop generating DNS class and type enums.florian2020-02-242-11/+95
| | | | OK jsg, jung
* Fix 'previously declared here' error on gcc3(luna88k).aoyama2020-02-243-10/+1
| | | | ok jsg@ florian@ jung@
* remove some unused functionsjsg2020-02-236-140/+6
| | | | ok jung@
* rmeove more unused functions and codejung2020-02-2395-3879/+66
| | | | ok florian
* remove unused parts of types.hjsg2020-02-232-189/+1
| | | | ok jung@ florian@
* We never request to clone the buffer from the message parser.florian2020-02-232-14/+2
| | | | OK millert
* We are not passing options to the message renderer.florian2020-02-232-38/+11
| | | | OK millert
* Partial rendering was never implemented.florian2020-02-234-108/+20
| | | | OK millert
* Remove unused fields from struct dst_key and stop passing name andflorian2020-02-234-95/+20
| | | | | rdclass around. OK millert, jung
* hmacs do not support NULL keysflorian2020-02-232-24/+3
| | | | OK millert, jung
* All key funcs are populated, skip NULL check.florian2020-02-233-62/+4
| | | | | While here remove *_isprivate since it is always true. OK millert, jung
* createctx2, verify2, and cleanup are always NULL.florian2020-02-234-108/+6
| | | | OK millert, jung
* Remove unused hmac functions from struct dst_func which in turn letsflorian2020-02-235-1050/+5
| | | | | us delete parsing of private keys from files. OK millert, jung
* remove unused structsjsg2020-02-232-36/+2
|
* remove unused dns_rdatacallbacks struct and typedefjsg2020-02-233-73/+1
|
* remove various unused macrosjung2020-02-225-51/+4
| | | | ok florian
* remove some unused args and unused assignments, as resultjung2020-02-226-64/+30
| | | | | | | | | msgblock_free() becomes just free() also add UNUSED() for some dns_message *msg args for later revisit and cleanup ok millert florian
* remove assigned but unused valuesjung2020-02-224-18/+3
| | | | ok millert florian
* remove unused codejung2020-02-2220-843/+16
| | | | ok millert florian
* Read CLOCK_MONOTONIC when we need timestamps to compare and useflorian2020-02-213-13/+13
| | | | | time(3) for the wall clock. prodding & OK jung