summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Finish moving of dig(1) to /usr/bin/dig by removing the sources in theflorian2020-02-1198-23886/+0
| | | | | old location. dig(1) sources can be found in src/usr.bin/dig. ok deraadt@
* iterated_hash is unusedflorian2020-02-043-97/+2
|
* isc/stat.h is unusedflorian2020-02-043-56/+2
|
* just use netdb.h directlyflorian2020-02-041-56/+0
|
* Remove unused typedefs that got left behind in previousflorian2020-02-049-134/+16
| | | | | | | | shreddings from types.h and get rid of offset.h while here by just using off_t in the one place where it's needed. However offset.h brought in limits.h and sys/types.h so sprinkle some includes over the tree to have various _MAX and intX_t defined.
* Get rid of getopt(3) compat code.florian2020-02-043-264/+2
|
* Remove a bunch of unused functions who access the filesystem and thenflorian2020-02-044-333/+3
| | | | get rid of lib/isc/unix/dir.c
* We are not using aes.florian2020-02-043-134/+2
|
* Remove unused files.florian2020-02-042-18/+0
|
* Nuke autohell from orbit. It's the only way to be sure.florian2020-01-286-303/+0
| | | | OK sthen
* Switch to Makefile based builds.florian2020-01-284-153/+17
| | | | | | | | Delete a bunch of files that were no longer built but still lying around. Since there are no subdirectories below obj any more we need to prefix dns/{log,time,result}.c with dns_ to not conflict with the same names used by lib/isc/. OK sthen
* Support for queries on ports != 53jca2020-01-261-2/+2
| | | | | | | | | | | | | | - dig(1) -p now works, as already supported by dig(1) from ports/net/isc-bind thanks to sthen@ - "set port=..." also works in nslookup(1) - host(1) has no support for alternate destination ports This adds "inet" to the pledge promises of all three programs, a compromise deemed reasonable and suggested by deraadt@; instead of slightly more complicated patches by myself and florian@ to avoid "inet" in the general case. Suggested by deraadt@, ok florian@ sthen@
* Remove unused code from socket.cflorian2020-01-263-1229/+20
| | | | OK tedu
* reduce isc/stdio to what is usedflorian2020-01-262-146/+2
| | | | OK tedu
* get rid of lib/isc/nothreadsflorian2020-01-2614-396/+7
| | | | OK tedu
* Switch once to isc_boolean_t in preparation of nothreads removalflorian2020-01-262-11/+16
| | | | OK tedu, jca
* Remove now unused unix/file.c and unix/fsaccess.cflorian2020-01-2611-1410/+9
| | | | OK jca, tedu
* Remove unused logging to file.florian2020-01-262-355/+4
| | | | OK jca, tedu
* isc_file_isdirwritable is not used (and besides, it uses access() whichderaadt2020-01-252-13/+2
| | | | hints all possible uses are TOCTOU)
* isc/unix/syslog is unusedflorian2020-01-255-134/+5
|
* we are not using rwlocksflorian2020-01-255-199/+3
|
* another chroot tendrilderaadt2020-01-251-4/+1
|
* Oops, one break too many removed; unbreak +tcp.florian2020-01-241-0/+1
|
* Since we are no longer using config.h we can remove a lot of featureflorian2020-01-242-8/+8
| | | | | | | | | checks from configure. Work started by tedu, I tossed a bunch more. "go ahead" tedu This is not comprehensive but returns where diminishing in terms of saved build time. The next step would probably be to remove configure entirely.
* Remove overly complicated set_rcvbuf. Very likely not needed in dig et al.florian2020-01-231-68/+0
| | | | OK deraadt
* Remove socket types that we are not going to use, like AF_UNIX sockets.florian2020-01-233-1321/+32
| | | | OK deraadt
* We can always create IPv4 and IPv6 sockets.florian2020-01-232-483/+5
| | | | | While here cleanup net.h. OK deraadt
* config.h and platform.h are unused nowflorian2020-01-2269-180/+137
|
* unifdef the last config.h bitsflorian2020-01-224-137/+2
| | | | OK millert
* get rid if ISC_{UN,}LIKELY it's in the way and not useful.florian2020-01-227-50/+19
| | | | OK millert
* Spell out PORT_NONBLOCK as O_NONBLOCK and ISC_SOCKADDR_LEN_T asflorian2020-01-222-20/+13
| | | | | socklen_t. OK millert
* eliminate many other possibilities in favor of just using select() here.tedu2020-01-222-427/+0
| | | | ok florian
* unifdef a few features we have. ok floriantedu2020-01-223-50/+2
|
* delete version detailing in all libraries; ok tedu florianderaadt2020-01-223-67/+2
|
* Pretty sure we are not BSDI 3.1; remove a threading stragglerflorian2020-01-221-13/+0
|
* unifdef openssl, specifically with passing this to unifdef(1) andflorian2020-01-228-1772/+8
| | | | | | | | | | | | | | | | | | | | | | a bit of hand massaging: define HAVE_EVP_SHA256 define HAVE_EVP_SHA384 define HAVE_EVP_SHA512 undef HAVE_FIPS_MODE undef HAVE_OPENSSL_AES define HAVE_OPENSSL_ECDSA undef HAVE_OPENSSL_ED25519 undef HAVE_OPENSSL_ED448 define HAVE_OPENSSL_EVP_AES undef HAVE_OPENSSL_GOST define ISC_PLATFORM_OPENSSLHASH define OPENSSL_VERSION_NUMBER 0x20000000L define USE_EVP define ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED define OPENSSL Guidance & OK tb
* florian points out that queue.h is unusedtedu2020-01-222-158/+1
|
* remove mutex.h etc. since this code is now unthreaded.tedu2020-01-2122-854/+22
| | | | ok florian
* Set --enable-openssl-hash to use digests from libcrypto insteadtb2020-01-217-23/+23
| | | | | | | | of the isc-provided ones. Get rid of most LIBRESSL_VERSION_NUMBER checks in the C code to avoid hacky workarounds that were implemented for old LibreSSL versions. ok florian
* libisc has a global variable called "isc_bind9" that indicates the program-familyderaadt2020-01-218-403/+76
| | | | | | | | | (bind, dig, nslookup, host..) the library is being used by, this flag is cleared using a constructor-like mechanism in a .c file which is not compiled nor called. if the flag is cleared, the library acts differently in 40+ functions. Imagine if our libc had such a global variable?? delete all of that. ok florian
* With the custom memory allocator gone ondestroy is unused.florian2020-01-205-205/+4
|
* Rip out custom memory allocator.florian2020-01-2033-3803/+282
| | | | OK otto
* As millert@ points out we can replace isc_string_touint64 withflorian2020-01-2032-478/+55
| | | | | strtoull(3) and then get rid of lib/isc/string.c OK millert
* Remove various unused lib/isc bits.florian2020-01-2020-3371/+17
| | | | OK millert
* Do not use a message catalog for error messages.florian2020-01-2026-852/+110
| | | | | It's not installed anyway. OK millert
* unifdef threading related definesflorian2020-01-204-504/+1
| | | | input & OK millert
* Remove unused tm.cflorian2020-01-206-525/+6
| | | | OK millert
* We are not using json, xml nor httpd.florian2020-01-2012-2169/+19
| | | | OK millert
* does not need a chroot wrapper; ok florianderaadt2020-01-091-28/+0
|
* Remove various unused bits and pieces from lib/isc.florian2020-01-0918-3277/+13
| | | | | | | Minus 3k lines. Input deraadt OK millert