summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* unifdef openssl, specifically with passing this to unifdef(1) andflorian2020-01-2220-3891/+15
| | | | | | | | | | | | | | | | | | | | | | 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-2126-900/+25
| | | | ok florian
* Whack last remaining LIBRESSL_VERSION_NUMBER check in the C code.tb2020-01-211-1/+1
|
* Set --enable-openssl-hash to use digests from libcrypto insteadtb2020-01-2110-27/+27
| | | | | | | | 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
* Get rid of isccfg/log.c by pulling in the tiny bits needed intoflorian2020-01-216-114/+12
| | | | | parser.c. One less conflicting .o file generated. OK deraadt
* With the custom memory allocator gone ondestroy is unused.florian2020-01-205-205/+4
|
* Rip out custom memory allocator.florian2020-01-20216-5494/+1214
| | | | OK otto
* As millert@ points out we can replace isc_string_touint64 withflorian2020-01-2058-523/+101
| | | | | 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-2033-1004/+120
| | | | | 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
* Fix a address family desynchronisation between lwres_conf andflorian2020-01-202-5/+13
| | | | | | | | | | | | | | | | | | | | | | dig_serverlist. In one of the first shredding commits lwres unintentionally lost the ability to track if the user requested IPv4 only or IPv6 only operations. Parsing of /etc/resolv.conf would add all nameservers, ignoring their address family. When dig(1) later populated server_list it would pay attention to the address family. If /etc/resolv.conf contains only IPv4 nameservers and it has 3 or more and the user requests IPv6 only operations dig would fail with "add_nameserver failed". This happens because lwres_conf already contains 3 nameservers but server_list is empty so dig tries to add ::1 to lwres_conf. It feels like this is very convoluted but it restores previous behavoir the way it was implemented before. Thus sidestepping some refactoring. OK millert
* Reduce tsig support to what is needed by dig et al by removing theflorian2020-01-2010-6625/+24
| | | | | | server side support and keyrings. This allows us to get rid of a red-black-tree implementation. OK millert
* Remove acl supportflorian2020-01-2010-1798/+12
| | | | OK millert
* Cleanup in lib/dns, mostly support bits to run a nameserver which weflorian2020-01-18109-106989/+80
| | | | | won't use in the tools. OK sthen
* does not need a chroot wrapper; ok florianderaadt2020-01-091-28/+0
|
* Remove various unused bits and pieces from lib/isc.florian2020-01-0919-3278/+14
| | | | | | | Minus 3k lines. Input deraadt OK millert
* Forgot to remove the file with the weird int type definitions in theflorian2020-01-091-54/+0
| | | | previous commit.
* Use normal int types like int32_t instead of isc_int32_t.florian2020-01-09214-1680/+1687
| | | | OK millert
* We use __dead for functions that do not return.florian2020-01-093-15/+11
| | | | OK millert
* Nuke atomics support. This gets rid of 4k lines of code including a bunchflorian2020-01-0960-4178/+53
| | | | | | | of assembly code. It's used for various statistics gathering in the bind daemon which we won't need in dig etc. OK millert
* avoid use of sprintf, this is 2020deraadt2020-01-091-4/+4
|
* Replace entropy.c, random.c and an outdated arc4random copy withflorian2020-01-0937-2904/+115
| | | | | | calls to libc's arc4random. Minus about 3k lines. prodding deraadt@
* First round of OPENSSL unifdef:florian2020-01-099-329/+5
| | | | | | | | | #define OPENSSL #undef OPENSSL_LEAKS #undef USE_ENGINE #undef DNS_CRYPTO_LEAKS prodding deraadt@
* Assorted unifdefs:florian2020-01-0955-416/+220
| | | | | | | | | | | | | | | | | | | | #define ISC_PLATFORM_NEEDSYSSELECTH 1 #define ISC_PLATFORM_HAVESTATNSEC 1 #define ISC_PLATFORM_RLIMITTYPE rlim_t #define ISC_PLATFORM_HAVELONGLONG 1 #undef ISC_PLATFORM_BRACEPTHREADONCEINIT #undef ISC_PLATFORM_USEDECLSPEC #define ISC_PLATFORM_HAVESYSUNH 1 #define ISC_PLATFORM_HAVESTRINGSH 1 #define ISC_PLATFORM_WANTAES 1 #define ISC_PLATFORM_USESIT 1 #define LIBISC_EXTERNAL_DATA #define LIBDNS_EXTERNAL_DATA #define LIBISCCFG_EXTERNAL_DATA #define LIBBIND9_EXTERNAL_DATA #define LIBTESTS_EXTERNAL_DATA prodding deraadt@
* unifdef gss-api:florian2020-01-0919-4328/+28
| | | | | | | | | | #undef GSSAPI #undef HAVE_GSSAPI_GSSAPI_H #undef HAVE_GSSAPI_GSSAPI_KRB5_H #undef HAVE_GSSAPI_H #undef HAVE_GSSAPI_KRB5_H prodding deraadt
* unifdef pkcs11:florian2020-01-0956-18862/+53
| | | | | | | | | | | | | | | | | #undef USE_PKCS11 #undef PKCS11_TOOLS #undef PKCS11CRYPTO #undef HAVE_PKCS11_GOST #undef HAVE_PKCS11_ECDSA #undef HAVE_PKCS11_ED25519 #undef HAVE_PKCS11_ED448 #define PK11_DH_DISABLE #define PK11_DSA_DISABLE #define PK11_FLAVOR #define PK11_MD5_DISABLE #undef PK11_SOFTHSMV2_FLAVOR prodding deraadt@
* unifdef printf and string functions:florian2020-01-0975-1320/+158
| | | | | | | | | | | | | | #undef ISC_PLATFORM_NEEDVSNPRINTF #undef ISC_PLATFORM_NEEDSPRINTF #undef ISC_PLATFORM_NEEDPRINTF #undef ISC_PLATFORM_NEEDFPRINTF #define ISC_PLATFORM_QUADFORMAT "ll" #undef ISC_PLATFORM_NEEDSTRSEP #undef ISC_PLATFORM_NEEDSTRLCPY #undef ISC_PLATFORM_NEEDSTRLCAT #undef ISC_PLATFORM_NEEDSTRTOUL #undef ISC_PLATFORM_NEEDMEMMOVE #undef ISC_PLATFORM_NEEDSTRCASESTR
* unifdef network defines:florian2020-01-0915-932/+10
| | | | | | | | | | | | | | | | | | | | | | | | | #define ISC_PLATFORM_HAVESALEN 1 #define ISC_PLATFORM_HAVEIPV6 1 #undef ISC_PLATFORM_NEEDIN6ADDRANY #undef ISC_PLATFORM_NEEDIN6ADDRLOOPBACK #define ISC_PLATFORM_HAVEIN6PKTINFO 1 #undef ISC_PLATFORM_HAVEINADDR6 #define ISC_PLATFORM_HAVESCOPEID 1 #undef ISC_PLATFORM_NEEDNTOP #undef ISC_PLATFORM_NEEDPTON #undef ISC_PLATFORM_NEEDPORTT #undef ISC_PLATFORM_HAVELIFCONF #undef ISC_PLATFORM_HAVEIF_LADDRCONF #undef ISC_PLATFORM_HAVEIF_LADDRREQ #define ISC_NET_BSD44MSGHDR 1 #define ISC_PLATFORM_HAVEIFNAMETOINDEX 1 #undef ISC_PLATFORM_FIXIN6ISADDR #define ISC_PLATFORM_HAVESOCKADDRSTORAGE 1 #define ISC_PLATFORM_HAVEKQUEUE 1 #undef ISC_PLATFORM_HAVEEPOLL #undef ISC_PLATFORM_HAVEDEVPOLL prodding deraadt@
* Remove backtrace support. Minus 800 lines.florian2020-01-078-527/+13
| | | | OK millert
* We are not windows. Minus 500 lines.florian2020-01-0720-574/+12
| | | | OK millert
* Remove thread support. Minus 4k lines.florian2020-01-0730-2616/+20
| | | | OK millert
* We are never going to use GeoIP support. Minus 1.8k lines.florian2020-01-079-1457/+7
| | | | OK millert
* We don't need libbind9 if we remove a thick wrapper around getaddrinfoflorian2020-01-0611-4452/+2
| | | | | and move the remaining bits to dighost.c. Minus 4k lines. OK sthen
* we are not using libiscccflorian2020-01-0629-3949/+3
| | | | OK sthen
* We only need the config parser from liblwres.florian2020-01-0681-18831/+88
| | | | | | | | | | | | This pulls out the config object (lwres_conf_t) from the context (lwres_context_t), switches to libc functions (lwres_net_ntop vs inet_ntop etc ) and removes a lwres_ prefix from number types (lwres_uint8_t vs uint8_t etc). With that we can nearly empty out lib/lwres and lose about 20k lines in the process. OK sthen
* We are not using libirs.florian2020-01-0620-4007/+2
| | | | OK sthen
* don't need this directory eitherderaadt2019-12-2010-3499/+2
|
* Do not need the getudpportrange functions. We don't need to perform anyderaadt2019-12-191-119/+1
| | | | | | crazy random port allocation for dns 'security' in USERLAND because the KERNEL has automatically done port-randomization since 1996 (wow the year of BSE in Britain)
* unifdef _AIXsthen2019-12-182-92/+2
|
* disable all the dscp probing code. it sees all the dscp optionderaadt2019-12-171-351/+4
| | | | | | | | defines, but is trying to determine if the kernel has it enabled/disabled, mostly by performing tests against localhost. instead, just declare dscp works. since dscp probing happens late, it runs into problems with pledge. we prefer pledge over this lovecraftian horror.
* what is docbook?deraadt2019-12-1717-4404/+0
|
* Add back some SOCK_DNS to socket() calls, and add a few more whilederaadt2019-12-172-10/+10
| | | | here (since this codebase will only support dig & nslookup)
* update to 9.10.8-P1, last isc-licensed releasesthen2019-12-17808-4951/+9827
|
* rm more unuseful filessthen2019-12-1742-10460/+0
|
* scrap some unused files, part of a bigger diff to update to 9.10.8-P1sthen2019-12-16195-30225/+0
| | | | | (last ISC licensed release) but that has an issue with dig -6 so I'm breaking it out for now