Commit Graph

9635 Commits

Author SHA1 Message Date
christos
167761864f merge local changes between unbound 1.9.6 and 1.13.1 2021-03-15 20:15:35 +00:00
christos
d0eba39ba7 Import unbound 1.13.1
4 February 2021: Wouter
	- release 1.13.1rc2 tag on branch-1.13.1 with added changes of 2 feb.
	  This became 1.13.1 release tag on 9 feb.  The main branch is set
	  to version 1.13.2.

2 February 2021: Wouter
	- branch-1.13.1 is created, with release-1.13.1rc1 tag.
	- Fix dynlibmod link on rhel8 for -ldl inclusion.
	- Fix windows dependency on libssp.dll because of default stack
	  protector in mingw.
	- Fix indentation of root anchor for use by windows install script.

1 February 2021: George
	- Attempt to fix NULL keys in the reuse_tcp tree; relates to #411.

29 January 2021: Wouter
	- Fix for doxygen 1.8.20 compatibility.

28 January 2021: Wouter
	- Annotate that we ignore the return value of if_indextoname.
	- Fix to use correct type for label count in rpz routine.
	- Fix empty clause warning in config_file nsid parse.
	- Fix to use correct type for label count in ipdnametoaddr rpz routine.
	- Fix empty clause warning in edns pass for padding.
	- Fix fwd ancil test post script when not supported.

26 January 2021: George
	- Merge PR #408 from fobser: Prevent a few more yacc clashes.
	- Merge PR #275 from Roland van Rijswijk-Deij: Add feature to return the
	  original instead of a decrementing TTL ('serve-original-ttl')
	- Merge PR #355 from noloader: Make ICANN Update CA and DS Trust Anchor
	  static data.
	- Ignore cache blacklisting when trying to reply with expired data from
	  cache (#394).

26 January 2021: Wouter
	- Fix compile of unbound-dnstap-socket without dnstap installed.

22 January 2021: Willem
	- Padding of queries and responses with DNS over TLS as specified in
	  RFC7830 and RFC8467.

22 January 2021: George
	- Fix TTL of SOA record for negative answers (localzone and
	  authzone data) to be the minimum of the SOA TTL and the SOA.MINIMUM.

19 January 2021: Willem
	- Support for RFC5001: DNS Name Server Identifier (NSID) Option
	  with the nsid: option in unbound.conf

18 January 2021: Wouter
	- Fix #404: DNS query with small edns bufsize fail.
	- Fix declaration before statement and signed comparison warning in
	  dns64.

15 January 2021: Wouter
	- Merge #402 from fobser: Implement IPv4-Embedded addresses according
	  to RFC6052.

14 January 2021: Wouter
	- Fix for #93: dynlibmodule import library is named libunbound.dll.a.

13 January 2021: Wouter
	- Merge #399 from xiangbao227: The lock of lruhash table should
	  unlocked after markdel entry.
	- Fix for #93: dynlibmodule link fix for Windows.

12 January 2021: Wouter
	- Fix #397: [Feature request] add new type always_null to local-zone
	  similar to always_nxdomain.
	- Fix so local zone types always_nodata and always_deny can be used
	  from the config file.

8 January 2021: Wouter
	- Merge PR #391 from fhriley: Add start_time to reply callbacks so
	  modules can compute the response time.
	- For #391: use struct timeval* start_time for callback information.
	- For #391: fix indentation.
	- For #391: more double casts in python start time calculation.
	- Add comment documentation.
	- Fix clang analysis warning.

6 January 2021: Wouter
	- Fix #379: zone loading over HTTP appears to have buffer issues.
	- Merge PR #395 from mptre: add missing null check.
	- Fix #387: client-subnet-always-forward seems to effectively bypass
	  any caching?

5 January 2021: Wouter
	- Fix #385: autoconf 2.70 impacts unbound build
	- Merge PR #375 by fhriley: Add rpz_enable and rpz_disable commands
	  to unbound-control.

4 January 2021: Wouter
	- For #376: Fix that comm point event is not double removed or double
	  added to event map.
	- iana portlist updated.

16 December 2020: George
	- Fix error cases when udp-connect is set and send() returns an error
	  (modified patch from Xin Li @delphij).

11 December 2020: Wouter
	- Fix #371: unbound-control timeout when Unbound is not running.
	- Fix to squelch permission denied and other errors from remote host,
	  they are logged at higher verbosity but not on low verbosity.
	- Merge PR #335 from fobser: Sprinkle in some static to prevent
	  missing prototype warnings.
	- Merge PR #373 from fobser: Warning: arithmetic on a pointer to void
	  is a GNU extension.
	- Fix missing prototypes in the code.

3 December 2020: Wouter
	- make depend.
	- iana portlist updated.

2 December 2020: Wouter
	- Fix #360: for the additionally reported TCP Fast Open makes TCP
	  connections fail, in that case we print a hint that this is
	  happening with the error in the logs.
	- Fix #356: deadlock when listening tcp.
	- Fix unbound-dnstap-socket to not use log routine from interrupt
	  handler and not print so frequently when invoked in sequence.
	- Fix on windows to ignore connection failure on UDP, unless verbose.
	- Fix for #283: fix stream reuse and tcp fast open.
	- Fix update, with write event check with streamreuse and fastopen.

1 December 2020: Wouter
	- Fix #358: Squelch udp connect 'no route to host' errors on low
	  verbosity.

30 November 2020: Wouter
	- Fix assertion failure on double callback when iterator loses
	  interest in query at head of line that then has the tcp stream
	  not kept for reuse.
	- tag for the 1.13.0rc4 release.  This also became the 1.13.0
	  release version on 3 dec 2020 with the streamreuse and fastopen
	  fix from 2 dec 2020.  The code repo continues for 1.13.1 in
	  development.

27 November 2020: Wouter
	- Fix compile warning for type cast in http2_submit_dns_response.
	- Fix when use free buffer to initialize rbtree for stream reuse.
	- Fix compile warnings for windows.
	- Fix compile warnings in rpz initialization.
	- Fix contrib/metrics.awk for FreeBSD awk compatibility.
	- tag for the 1.13.0rc3 release.

26 November 2020: Wouter
	- Fix to omit UDP receive errors from log, if verbosity low.
	  These happen because of udp-connect.
	- For #352: contrib/metrics.awk for Prometheus style metrics output.
	- Fix that after failed read, the readagain cannot activate.
	- Clear readagain upon decommission of pending tcp structure.

25 November 2020: Wouter
	- with udp-connect ignore connection refused with UDP timeouts.
	- Fix udp-connect on FreeBSD, do send calls on connected UDP socket.
	- Better fix for reuse tree comparison for is-tls sockets.  Where
	  the tree key identity is preserved after cleanup of the TLS state.
	- Remove debug commands from reuse tests.
	- Fix memory leak for edns client tag opcode config element.
	- Attempt fix for libevent state in tcp reuse cases after a packet
	  is written.
	- Fix readagain and writeagain callback functions for comm point
	  cleanup.
	- tag for the 1.13.0rc2 release.

24 November 2020: Wouter
	- Merge PR #283 : Stream reuse.  This implements upstream stream
	  reuse for performing several queries over the same TCP or TLS
	  channel.
	- set version of main branch to 1.13.0 for upcoming release.
	- iana portlist updated.
	- Fix one port unit test for udp-connect.
	- tag for the 1.13.0rc1 release.
	- Fix crash when TLS connection is closed prematurely, when
	  reuse tree comparison is not properly identical to insertion.
	- Fix padding of struct regional for 32bit systems.

23 November 2020: George
	- Merge PR #313 from Ralph Dolmans: Replace edns-client-tag with
	  edns-client-string option.

23 November 2020: Wouter
	- Merge #351 from dvzrv: Add AF_NETLINK to set of allowed socket
	  address families.
	- Fix #350: with the AF_NETLINK permission, to fix 1.12.0 error:
	  failed to list interfaces: getifaddrs: Address family not
	  supported by protocol.
	- Fix #347: IP_DONTFRAG broken on Apple xcode 12.2.
	- Option to toggle udp-connect, default is enabled.
	- Fix for #303 CVE-2020-28935 : Fix that symlink does not interfere
	  with chown of pidfile.
	- Further fix for it and retvalue 0 fix for it.

12 November 2020: Wouter
	- Fix to connect() to UDP destinations, default turned on,
	  this lowers vulnerability to ICMP side channels.
	- Retry for interfaces with unused ports if possible.

10 November 2020: Wouter
	- Fix #341: fixing a possible memory leak.
	- Fix memory leak after fix for possible memory leak failure.
	- Fix #343: Fail to build --with-libnghttp2 with error: 'SSIZE_MAX'
	  undeclared.

27 October 2020: Wouter
	- In man page note that tls-cert-bundle is read before permission
	  drop and chroot.

22 October 2020: Wouter
	- Fix #333: Unbound Segmentation Fault w/ log_info Functions From
	  Python Mod.
	- Fix that minimal-responses does not remove addresses from a priming
	  query response.

21 October 2020: George
	- Fix #327: net/if.h check fails on some darwin versions; contribution by
	  Joshua Root.
	- Fix #320: potential memory corruption due to size miscomputation upton
	  custom region alloc init.

21 October 2020: Wouter
	- Merge PR #228 : infra-keep-probing option to probe hosts that are
	  down.  Add infra-keep-probing: yes option. Hosts that are down are
	  probed more frequently.
	  With the option turned on, it probes about every 120 seconds,
	  eventually after exponential backoff, and that keeps that way. If
	  traffic keeps up for the domain. It probes with one at a time, eg.
	  one query is allowed to probe, other queries within that 120 second
	  interval are turned away.

19 October 2020: George
	- Merge PR #324 from James Renken: Add modern X.509v3 extensions to
	  unbound-control TLS certificates.
	- Fix for PR #324 to attach the x509v3 extensions to the client
	  certificate.

19 October 2020: Ralph
	- local-zone regional allocations outside of chunk

19 October 2020: Wouter
	- Fix that http settings have colon in set_option, for
	  http-endpoint, http-max-streams, http-query-buffer-size,
	  http-response-buffer-size, and http-nodelay.
	- Fix memory leak of https port string when reading config.
	- Fix #330: [Feature request] Add unencrypted DNS over HTTPS support.
	  This adds the option http-notls-downstream: yesno to change that,
	  and the dohclient test code has the -n option.
	- Fix python documentation warning on functions.rst inplace_cb_reply.
	- Fix dnstap test to wait for log timer to see if queries are logged.
	- Log ip address when http session recv fails, eg. due to tls fail.
	- Fix to set the tcp handler event toggle flag back to default when
	  the handler structure is reused.
	- Clean the fix for out of order TCP processing limits on number
	  of queries.  It was tested to work.

16 October 2020: Wouter
	- Fix that the out of order TCP processing does not limit the
	  number of outstanding queries over a connection.

15 October 2020: George
	- Fix that if there are reply callbacks for the given rcode, those
	  are called per reply and a new message created if that was modified
	  by the call.
	- Pass the comm_reply information to the inplace_cb_reply* functions
	  during the mesh state and update the documentation on that.

15 October 2020: Wouter
	- Merge PR #326 from netblue30: DoH: implement content-length
	  header field
	- DoH content length, simplify code, remove declaration after
	  statement and fix cast warning.

14 October 2020: Wouter
	- Fix for python reply callback to see mesh state reply_list member,
	  it only removes it briefly for the commpoint call so that it does
	  not drop it and attempt to modify the reply list during reply.
	- Fix that if there are on reply callbacks, those are called per
	  reply and a new message created if that was modified by the call.
	- Free up auth zone parse region after use for lookup of host

13 October 2020: Wouter
	- Fix #323: unbound testsuite fails on mock build in systemd-nspawn
	  if systemd support is build.

9 October 2020: Wouter
	- Fix dnstap socket and the chroot not applied properly to the dnstap
	  socket path.
	- Fix warning in libnss compile, nss_buf2dsa is not used without DSA.

8 October 2020: Wouter
	- Tag for 1.12.0 release.
	- Current repo is version 1.12.1 in development.
	- Fix #319: potential memory leak on config failure, in rpz config.

1 October 2020: Wouter
	- Current repo is version 1.12.0 for release.  Tag for 1.12.0rc1.

30 September 2020: Wouter
	- Fix doh tests when not compiled in.
	- Add dohclient test executable to gitignore.
	- Fix stream_ssl, ssl_req_order and ssl_req_timeout tests for
	  alloc check debug output.
	- Easier kill of unbound-dnstap-socket tool in test.
	- Fix memory leak of edns tags at libunbound context delete.
	- Fix double loopexit for unbound-dnstap-socket after sigterm.

29 September 2020: Ralph
	- DNS Flag Day 2020: change edns-buffer-size default to 1232.

28 September 2020: Wouter
	- Fix unit test for dnstap changes, so that it waits for the timer.

23 September 2020: Wouter
	- Fix #305: dnstap logging significantly affects unbound performance
	  (regression in 1.11).
	- Fix #305: only wake up thread when threshold reached.
	- Fix to ifdef fptr wlist item for dnstap.

23 September 2020: Ralph
	- Fix edns-client-tags get_option typo
	- Add edns-client-tag-opcode option
	- Use inclusive language in configuration

21 September 2020: Ralph
	- Fix #304: dnstap logging not recovering after dnstap process restarts

21 September 2020: Wouter
	- Merge PR #311 by luismerino: Dynlibmod leak.
	- Error message is logged for dynlibmod malloc failures.
	- iana portlist updated.

18 September 2020: Wouter
	- Fix that prefer-ip4 and prefer-ip6 can be get and set with
	  unbound-control, with libunbound and the unbound-checkconf option
	  output function.
	- iana portlist updated.

15 September 2020: George
	- Introduce test for statistics.

15 September 2020: Wouter
	- Spelling fix.

11 September 2020: Wouter
	- Remove x file mode on ipset/ipset.c and h files.

9 September 2020: Wouter
	- Fix num.expired statistics output.

31 August 2020: Wouter
	- Merge PR #293: Add missing prototype.  Also refactor to use the new
	  shorthand function to clean up the code.
	- Refactor to use sock_strerr shorthand function.
	- Fix #296: systemd nss-lookup.target is reached before unbound can
	  successfully answer queries. Changed contrib/unbound.service.in.

27 August 2020: Wouter
	- Similar to NSD PR#113, implement that interface names can be used,
	  eg. something like interface: eth0 is resolved at server start and
	  uses the IP addresses for that named interface.
	- Review fix, doxygen and assign null in case of error free.

26 August 2020: George
	- Update documentation in python example code.

24 August 2020: Wouter
	- Fix that dnstap reconnects do not spam the log with the repeated
	  attempts.  Attempts on the timer are only logged on high verbosity,
	  if they produce a connection failure error.
	- Fix to apply chroot to dnstap-socket-path, if chroot is enabled.
	- Change configure to use EVP_sha256 instead of HMAC_Update for
	  openssl-3.0.0.

20 August 2020: Ralph
	- Fix stats double count issue (#289).

13 August 2020: Ralph
	- Create and init edns tags data for libunbound.

10 August 2020: Ralph
	- Merge (modified) PR #277, use EVP_MAC_CTX_set_params if available,
	  by Vít#zslav #í#ek.

10 August 2020: Wouter
	- Fix #287: doc typo: "Additionaly".
	- Rerun autoconf

6 August 2020: Wouter
	- Merge PR #284 and Fix #246: Remove DLV entirely from Unbound.
	  The DLV has been decommisioned and in unbound 1.5.4, in 2015, there
	  was advise to stop using it.  The current code base does not contain
	  DLV code any more.  The use of dlv options displays a warning.

5 August 2020: Wouter
	- contrib/aaaa-filter-iterator.patch file renewed diff content to
	  apply cleanly to the current coderepo for the current code version.

5 August 2020: Ralph
	- Merge PR #272: Add EDNS client tag functionality.

4 August 2020: George
	- Improve error log message when inserting rpz RR.
	- Merge PR #280, Make tvOS & watchOS checks verify truthiness as well as
	  definedness, by Felipe Gasper.

4 August 2020: Wouter
	- Fix mini_event.h on OpenBSD cannot find fd_set.

31 July 2020: Wouter
	- Fix doxygen comment for no ssl for tls session ticket key callback
	  routine.

27 July 2020: George
	- Merge PR #268, draft-ietf-dnsop-serve-stale-10 has become RFC 8767 on
	  March 2020, by and0x000.

27 July 2020: Ralph
	- Merge PR #269, Fix python module len() implementations, by Torbjörn
	  Lönnemark

27 July 2020: Wouter
	- branch now named 1.11.1.  1.11.0rc1 became the 1.11.0 release.
	- Merge PR #270 from cgzones: munin plugin: always exit 0 in autoconf

20 July 2020: Wouter
	- Fix streamtcp to print packet data to stdout.  This makes the
	  stdout and stderr not mix together lines, when parsing its output.
	- Fix contrib/fastrpz.patch to apply cleanly.  It fixes for changes
	  due to added libdynmod, but it does not compile, it conflicts with
	  new rpz code.
	- branch now named 1.11.0 and 1.11.0rc1 tag.

17 July 2020: Wouter
	- Fix libnettle compile for session ticket key callback function
	  changes.
	- Fix lock dependency cycle in rpz zone config setup.

17 July 2020: Ralph
	- Merge PR #234 - Ensure proper alignment of cmsg buffers by Jérémie
	  Courrèges-Anglas.
	- Fix PR #234 log_assert sizeof to use union buffer.

16 July 2020: Wouter
	- Fix check conf test for referencing installation paths.
	- Fix unused variable warning for clang analyzer.

16 July 2020: George
	- Introduce 'include-toplevel:' configuration option.

16 July 2020: Ralph
	- Add bidirectional frame streams support.

8 July 2020: Wouter
	- Fix add missing DSA header, for compilation without deprecated
	  OpenSSL APIs.
	- Fix to use SSL_CTX_set_tlsext_ticket_key_evp_cb in OpenSSL
	  3.0.0-alpha4.
	- Longer keys for the test set, this avoids weak crypto errors.

7 July 2020: Wouter
	- Fix #259: Fix unbound-checkconf does not check view existence.
	  unbound-checkconf checks access-control-view, access-control-tags,
	  access-control-tag-actions and access-control-tag-datas.
	- Fix offset of error printout for access-control-tag-datas.
	- Review fixes for checkconf #259 change.

6 July 2020: Wouter
	- run_vm cleanup better and removes trailing slash on single argument.

29 June 2020: Wouter
	- Move reply list clean for serve expired mesh callback to after
	  the reply is sent, so that script callbacks have reply_info.
	- Also move reply list clean for mesh callbacks to the scrip callback
	  can see the reply_info.
	- Fix for mesh accounting if the reply list already empty to begin
	  with.
	- Fix for mesh accounting when rpz decides to drop a reply with a
	  tcp stream waiting for it.
	- Review fix for number of detached states due to use of variable
	  after end of loop.
	- Fix tcp req info drop due to size call into mesh accounting
	  removal of mesh state during mesh send reply.

24 June 2020: Wouter
	- iana portlist updated.
	- doxygen file comments for dynlibmodule.

17 June 2020: Wouter
	- Fix default explanation in man page for qname-minimisation-strict.
	- Fix display of event loop method with libev.

8 June 2020: Wouter
	- Mention tls name possible when tls is enabled for stub-addr in the
	  man page.

27 May 2020: George
	- Merge PR #241 by Robert Edmonds: contrib/libunbound.pc.in: Do not use
	  "Requires:".

25 May 2020: George
	- Update contrib/aaaa-filter-iterator.patch for the recent
	  generate_sub_request() change and to apply cleanly.

21 May 2020: George
	- Fix for integer overflow when printing RDF_TYPE_TIME.

19 May 2020: Wouter
	- CVE-2020-12662 Unbound can be tricked into amplifying an incoming
	  query into a large number of queries directed to a target.
	- CVE-2020-12663 Malformed answers from upstream name servers can be
	  used to make Unbound unresponsive.
	- Release 1.10.1 is 1.10.0 with fixes, code repository continues,
	  including those fixes, towards the next release.  Configure has
	  version 1.10.2 version number in it.
	- For PR #93: windows compile warnings removal
	- windows compile warnings removal for ip dscp option code.
	- For PR #93: unit test for dynlib module.

18 May 2020: Wouter
	- For PR #93: dynlibmod can handle reloads and deinit and inits again,
	  with dlclose and dlopen of the library again.  Also for multiple
	  modules.  Fix memory leak by not closing dlopened content.  Fix
	  to allow one dynlibmod instance by unbound-checkconf.
	- For PR #93: checkconf allows multiple dynlib in module-config, for
	  a couple cases.
	- For PR #93: checkconf allows python dynlib in module-config, for
	  a couple cases.
	- For PR #93: man page spelling reference fix.
	- For PR #93: fix link of other executables for dynlibmod dependency.

15 May 2020: Wouter
	- Merge PR #93: Add dynamic library support.
	- Fixed conflicts for PR #93 and make configure, yacc, lex.
	- For PR #93: Fix warnings for dynlibmodule.

15 May 2020: Ralph
	- Cache ECS answers with longest scope of CNAME chain.

22 April 2020: George
	- Explicitly use 'rrset-roundrobin: no' for test cases.

21 April 2020: Wouter
	- Merge #225 from akhait: KSK-2010 has been revoked. It removes the
	  KSK-2010 from the default list in unbound-anchor, now that the
	  revocation period is over.  KSK-2017 is the only trust anchor in
	  the shipped default now.

21 April 2020: George
	- Change default value for 'rrset-roundrobin' to yes.
	- Fix tests for new rrset-roundrobin default.

20 April 2020: Wouter
	- Fix #222: --enable-rpath, fails to rpath python lib.
	- Fix for count of reply states in the mesh.
	- Remove unneeded was_mesh_reply check.

17 April 2020: George
	- Add SNI support on more TLS connections (fixes #193).
	- Add SNI support to unbound-anchor.

16 April 2020: George
	- Add doxygen documentation for DSCP.

16 April 2020: Wouter
	- Fix help return code in unbound-control-setup script.
	- Fix for posix shell syntax for trap in nsd-control-setup.
	- Fix for posix shell syntax for trap in run_msg.sh test script.

15 April 2020: George
	- Fix #220: auth-zone section in config may lead to segfault.

7 April 2020: Wouter
	- Merge PR #214 from gearnode: unbound-control-setup recreate
	  certificates.  With the -r option the certificates are created
	  again, without it, only the files that do not exist are created.

6 April 2020: Ralph
	- Keep track of number of timeouts. Use this counter to determine if
	  capsforid fallback should be started.

6 April 2020: George
	- More documentation for redis-expire-records option.

1 April 2020: George
	- Merge PR #206: Redis TTL, by Talkabout.

30 March 2020: Wouter
	- Merge PR #207: Clarify if-automatic listens on 0.0.0.0 and ::
	- Merge PR #208: Fix uncached CLIENT_RESPONSE'es on stateful
	  transports.

27 March 2020: Wouter
	- Merge PR #203 from noloader: Update README-Travis.md with current
	  procedures.

27 March 2020: Ralph
	- Make unbound-control error returned on missing domain name more user
	  friendly.

26 March 2020: Ralph
	- Fix RPZ concurrency issue when using auth_zone_reload.

25 March 2020: George
	- Merge PR #201 from noloader: Fix OpenSSL cross-compaile warnings.
	- Fix on #201.

24 March 2020: Wouter
	- Merge PR #200 from yarikk: add ip-dscp option to specify the DSCP
	  tag for outgoing packets.
	- Fixes on #200.
	- Travis fix for ios by omitting tools from install.

23 March 2020: Wouter
	- Fix compile on Solaris for unbound-checkconf.

20 March 2020: George
	- Merge PR #198 from fobser: Declare lz_enter_rr_into_zone() static, it's
	  only used in this file.

20 March 2020: Wouter
	- Merge PR #197 from fobser: Make log_ident_revert_to_default() a
	  proper prototype.

19 March 2020: Ralph
	- Merge PR#191: Update iOS testing on Travis, by Jeffrey Walton.
	- Fix #158: open tls-session-ticket-keys as binary, for Windows. By
	  Daisuke HIGASHI.
	- Merge PR#134, Allow the kernel to provide random source ports. By
	  Florian Obser.
	- Log warning when using outgoing-port-permit and outgoing-port-avoid
	  while explicit port randomisation is disabled.
	- Merge PR#194: Add libevent testing to Travis, by Jeffrey Walton.
	- Fix .travis.yml error, missing 'env' option.

16 March 2020: Wouter
	- Fix #192: In the unbound-checkconf tool, the module config of
	  dns64 subnetcache respip validator iterator is whitelisted, it was
	  reported it seems to work.

12 March 2020: Wouter
	- Fix compile of test tools without protobuf.

11 March 2020: Ralph
	- Add check to make sure RPZ records are subdomains of configured
	  zone origin.

11 March 2020: George
	- Fix #189: mini_event.h:142:17: error: field 'ev_timeout' has incomplete
	  type, by noloader.
	- Changelog entry for (Fix #189, Merge PR #190).

11 March 2020: Wouter
	- Fix #188: unbound-control.c:882:6: error: 'execlp' is
	  unavailable: not available on tvOS.

6 March 2020: George
	- Merge PR #186, fix #183: Fix unrecognized 'echo -n' option on OS X, by
	  noloader

5 March 2020: Wouter
	- Fix PR #182 from noloader: Add iOS testing to Travis.

4 March 2020: Ralph
	- Update README-Travis.md (from PR #179), by Jeffrey Walton.

4 March 2020: George
	- Merge PR #181 from noloader: Fix OpenSSL -pie warning on Android.

4 March 2020: Wouter
	- Merge PR #180 from noloader: Avoid calling exit in Travis script.

3 March 2020: George
	- Upgrade config.guess(2020-01-01) and config.sub(2020-01-01).

2 March 2020: Ralph
	- Fix #175, Merge PR #176: fix link error when OpenSSL is configured
 	  with no-engine, thanks noloader.

2 March 2020: George
	- Fix compiler warning in dns64/dns64.c
	- Merge PR #174: Add Android to Travis testing, by noloader.
	- Move android build scripts to contrib/ and allow android tests to fail.

2 March 2020: Wouter
	- Fix #177: dnstap does not build on macOS.

28 February 2020: Ralph
	- Merge PR #172: Add IBM s390x arch for testing, by noloader.

28 February 2020: Wouter
	- Merge PR #173: updated makedist.sh for config.guess and
	  config.sub and sha256 digest for gpg, by noloader.
	- Merge PR #164: Framestreams, this branch implements dnstap
	  unidirectional connectivity in unbound. This has a number of
	  new features.

	  The dependency on libfstrm is removed. The fstrm protocol code
	  resides in dnstap/dnstap_fstrm.h and dnstap/dnstap_fstrm.c. This
	  contains a brief definition of what unbound needs.

	  The make unbound-dnstap-socket builds a debug tool,
	  unbound-dnstap-socket. It can listen, accept multiple DNSTAP
	  streams and print information. Commandline options control it.

	  Unbound can reconnect if the unix domain socket file socket is
	  closed. This uses exponential backoff after which it uses a
	  one second timer to throttle cpu down. There is also support
	  to use TCP and TLS for connecting to the log server. There
	  are new config options to turn them on, in the dnstap section
	  in the man page and example config file. dnstap-ip with IP
	  address of server for TCP or TLS use. dnstap-tls to turn
	  on TLS. And dnstap-tls-server-name, dnstap-tls-cert-bundle,
	  dnstap-tls-client-key-file and dnstap-tls-client-cert-file
	  to configure the certificates for server authentication and
	  client authentication, or leave at "" to not use that.

27 February 2020: George
	- Merge PR #171: Add additional compilers and platforms to Travis
	  testing, by noloader.

27 February 2020: Wouter
	- Fix #169: Fix warning for daemon/remote.c output may be truncated
	  from snprintf.
	- Fix #170: Fix gcc undefined sanitizer signed integer overflow
	  warning in signature expiry RFC1982 serial number arithmetic.
	- Fix more undefined sanitizer issues, in respip copy_rrset null
	  dname, and in the client_info_compare routine for null memcmp.

26 February 2020: Wouter
	- iana portlist updated.

25 February 2020: Wouter
	- Fix #165: Add prefer-ip4: yesno config option to prefer ipv4 for
	  using ipv4 filters, because the hosts ip6 netblock /64 is not owned
	  by one operator, and thus reputation is shared.

24 February 2020: George
	- Merge PR #166: Fix typo in unbound.service.in, by glitsj16.

20 February 2020: Wouter
	- Updated contrib/unbound_smf23.tar.gz with Solaris SMF service for
	  Unbound from Yuri Voinov.
	- master branch has 1.10.1 version.

18 February 2020: Wouter
	- protect X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS with ifdef for
	  different openssl versions.

17 February 2020: Wouter
	- changelog point where the tag for 1.10.0rc2 release is.  And with
	  the unbound_smf23 commit added to it, that is the 1.10.0 release.

17 February 2020: Ralph
	- Add respip to supported module-config options in unbound-checkconf.

17 February 2020: George
	- Remove unused variable.

17 February 2020: Wouter
	- contrib/drop2rpz: perl script that converts the Spamhaus DROP-List
	  in RPZ-Format, contributed by Andreas Schulze.

14 February 2020: Wouter
	- Fix spelling in unbound.conf.5.in.
	- Stop unbound-checkconf from insisting that auth-zone and rpz
	  zonefiles have to exist.  They can not exist, and download later.

13 February 2020: Wouter
	- tag for 1.10.0rc1 release.

12 February 2020: Wouter
	- Fix with libnettle make test with dsa disabled.
	- Fix contrib/fastrpz.patch to apply cleanly.  Fix for serve-stale
	  fixes, but it does not compile, conflicts with new rpz code.
	- Fix to clean memory leak of respip_addr.lock when ip_tree deleted.
	- Fix compile warning when threads disabled.
	- updated version number to 1.10.0.

10 February 2020: George
	- Document 'ub_result.was_ratelimited' in libunbound.
	- Fix use after free on log-identity after a reload; Fixes #163.

6 February 2020: George
	- Fix num_reply_states and num_detached_states counting with
	  serve_expired_callback.
	- Cleaner code in mesh_serve_expired_lookup.
	- Document in unbound.conf manpage that configuration clauses can be
	  repeated in the configuration file.

6 February 2020: Wouter
	- Fix num_reply_addr counting in mesh and tcp drop due to size
	  after serve_stale commit.
	- Fix to create and destroy rpz_lock in auth_zones structure.
	- Fix to lock zone before adding rpz qname trigger.
	- Fix to lock and release once in mesh_serve_expired_lookup.
	- Fix to put braces around empty if body when threading is disabled.

5 February 2020: George
	- Added serve-stale functionality as described in
	  draft-ietf-dnsop-serve-stale-10. `serve-expired-*` options can be used
	  to configure the behavior.
	- Updated cachedb to honor `serve-expired-ttl`; Fixes #107.
	- Renamed statistic `num.zero_ttl` to `num.expired` as expired replies
	  come with a configurable TTL value (`serve-expired-reply-ttl`).
	- Fixed stats when replying with cached, cname-aliased records.
	- Added missing default values for redis cachedb backend.

3 February 2020: Ralph
	- Add assertion to please static analyzer

31 January 2020: Wouter
	- Fix fclose on error in TLS session ticket code.

30 January 2020: Ralph
	- Fix memory leak in error condition remote.c
	- Fix double free in error condition view.c
	- Fix memory leak in do_auth_zone_transfer on success
	- Merge RPZ support into master. Only QNAME and Response IP triggers are
	  supported.
	- Stop working on socket when socket() call returns an error.
	- Check malloc return values in TLS session ticket code

30 January 2020: Wouter
	- Fix subnet tests for disabled DSA algorithm by default.
	- Update contrib/fastrpz.patch for clean diff with current code.
	- Merge PR#151: Fixes for systemd units, by Maryse47, Edmonds
	  and Frzk.  Updates the unbound.service systemd file and adds
	  a portable systemd service file.
	- updated .gitignore for added contrib file.
	- Add build rule for ipset to Makefile
	- Add getentropy_freebsd.o to Makefile dependencies.

29 January 2020: Ralph
	- Merge PR#156 from Alexander Berkes; Added unbound-control
	  view_local_datas_remove command.

29 January 2020: Wouter
	- Fix #157: undefined reference to `htobe64'.

28 January 2020: Ralph
	- Merge PR#147; change rfc reference for reserved top level dns names.

28 January 2020: Wouter
	- iana portlist updated.
	- Fix to silence the tls handshake errors for broken pipe and reset
	  by peer, unless verbosity is set to 2 or higher.

27 January 2020: Ralph
	- Merge PR#154; Allow use of libbsd functions with configure option
	  --with-libbsd. By Robert Edmonds and Steven Chamberlain.
	- Merge PR#148; Add some TLS stats to unbound_munin_. By Fredrik Pettai.

27 January 2020: Wouter
	- Merge PR#155 from Robert Edmonds: contrib/libunbound.pc.in: Fixes
	  to Libs/Requires for crypto library dependencies.
	- Fix #153: Disable validation for DSA algorithms.  RFC 8624
	  compliance.

23 January 2020: Wouter
	- Merge PR#150 from Frzk: Systemd unit without chroot.  It add
	  contrib/unbound_nochroot.service.in, a systemd file for use with
	  chroot: "", see comments in the file, it uses systemd protections
	  instead.

14 January 2020: Wouter
	- Removed the dnscrypt_queries and dnscrypt_queries_chacha tests,
	  because dnscrypt-proxy (2.0.36) does not support the test setup
	  any more, and also the config file format does not seem to have
	  the appropriate keys to recreate that setup.
	- Fix crash after reload where a stats lookup could reference old key
	  cache and neg cache structures.
	- Fix for memory leak when edns subnet config options are read when
	  compiled without edns subnet support.
	- Fix auth zone support for NSEC3 records without salt.

10 January 2020: Wouter
	- Fix the relationship between serve-expired and prefetch options,
	  patch from Saksham Manchanda from Secure64.
	- Fix unreachable code in ssl set options code.

8 January 2020: Ralph
	- Fix #138: stop binding pidfile inside chroot dir in systemd service
	  file.

8 January 2020: Wouter
	- Fix 'make test' to work for --disable-sha1 configure option.
	- Fix out-of-bounds null-byte write in sldns_bget_token_par while
	  parsing type WKS, reported by Luis Merino from X41 D-Sec.
	- Updated sldns_bget_token_par fix for also space for the zero
	  delimiter after the character.  And update for more spare space.

6 January 2020: George
	- Downgrade compat/getentropy_solaris.c to version 1.4 from OpenBSD.
	  The dl_iterate_phdr() function introduced in newer versions raises
	  compilation errors on solaris 10.
	- Changes to compat/getentropy_solaris.c for,
	  ifdef stdint.h inclusion for older systems.
	  ifdef sha2.h inclusion for older systems.

6 January 2020: Wouter
	- Merge #135 from Florian Obser: Use passed in neg and key cache
	  if non-NULL.
	- Fix #140: Document slave not downloading new zonefile upon update.

16 December 2019: George
	- Update mailing list URL.

12 December 2019: Ralph
	- Master is 1.9.7 in development.
	- Fix typo to let serve-expired-ttl work with ub_ctx_set_option(), by
	  Florian Obser

10 December 2019: Wouter
	- Fix to make auth zone IXFR to fallback to AXFR if a single
	  response RR is received over TCP with the SOA in it.
2021-03-15 20:00:53 +00:00
christos
b4110b4891 merge conflicts between our changes for nsd between 4.2.4 and 4.3.5 2021-03-15 19:48:51 +00:00
christos
f3d63a561b Import 4.3.5:
19 January 2021: Wouter
	- Set branch ready for 4.3.5 release.  Tag for 4.3.5rc1.
	  Became the 4.3.5 release on 26 january 2021.  This branch continues
	  with 4.3.6 in development.

15 January 2021: Wouter
	- Fix #152: '*' in Rdata causes the return code to be NOERROR instead
	  of NX.
	- Add config.guess and config.sub to .gitignore for autoconf 2.70.
	- Fix #150: TXT record validation difference with BIND.
	- Fixup TXT record validation fix for escaped quotes.
	- Fixup TXT record validation fix for escaped backslashes.
	- Fixup escape character parse for quoted strings.

11 January 2021: Wouter
	- Fix #151: DNAME not applied more than once to resolve the query.
	- Fix dname test for #148.
	- For #151: fix to not produce loops in output.

5 January 2021: Wouter
	- Fix configure.ac for autoconf 2.70.

4 January 2021: Wouter
	- Fix #148: CNAME need not be followed after a synthesized CNAME
	  for a CNAME query.

11 December 2020: Wouter
	- Fix that nsd-control has timeout when connection is down.
	- remove windows socket ifdefs from nsd-control.

3 December 2020: Wouter
	- For #145: Fix that service of remaining TCP and TLS connections
	  does not allow new queries to be made, the connection is closed.
	  Only existing queries and zone transfers are answered, new ones
	  are rejected by a close of the channel.

30 November 2020: Wouter
	- Fix #144: fix better.

27 November 2020: Wouter
	- Fix #144: Typo fix in nsd.conf.5.in.

26 November 2020: Wouter
	- Fix #143: xfrd no hysteresis with NOT IMPLEMENTED rcode.

24 November 2020: Wouter
	- Merge PR #141: ZONEMD RR type.
	- tag for 4.3.4rc1.  This became 4.3.4 release on 1 dec 2020.
	  The code repo continues for 4.3.5 in development.

23 November 2020: Wouter
	- Fix #142: NODATA answers missin SOA in authority section after
	  CNAME chain.
	- Fix for CVE-2020-28935 : Fix that symlink does not interfere
	  with chown of pidfile.
	- fix writepid for retvalue 0.

9 November 2020: Wouter
	- Fix #138: NSD returns non-EDNS answer when QUESTION is empty.
	- Fix to check nscount in previous fix for EDNS in formerr response
	  when there is no question.

28 October 2020: Wouter
	- Remove unused init_cfg_parse routine from configlexer.

20 October 2020: Wouter
	- Fix to add missing closest encloser NSEC3 for wildcard nodata type
	  DS answer.

14 October 2020: Wouter
	- Fix #134: IPV4_MINIMAL_RESPONSE_SIZE vs EDNS_MAX_MESSAGE_LEN.

13 October 2020: Wouter
	- Fix missing parenthesis on size of fix to init buffer.

12 October 2020: Wouter
	- Fix #127: two minor `-Wcast-qual` cleanups
	- Fix #126: minor header hygiene
	- Fix #125: include config.h in compat/setproctitle.c and fix prototype of `setproctitle`
	- Fix #133: fix 0-init of local ( stack ) buffer.

8 October 2020: Wouter
	- tag for 4.3.3 release
	- current repository contains 4.3.4 in development.
	- Fix #129: ambiguous use of errno, in log message if sendmmsg fails.
	- Fix #128: Fix that the invalid port number is logged for sendmmsg
	  failed: Invalid argument.

1 October 2020: Wouter
	- tag for 4.3.3rc1 release.

30 September 2020: Wouter
	- Updated date in nsd -v output.
	- Fixup bug013_truncate, checkconf and cutest_qroot tests for new
	  default EDNS size.

29 September 2020: Willem
	- Follow DNS flag day 2020 advice and
	  set default EDNS message size to 1232.

4 September 2020: Wouter
	- Remove unused space from LIBS on link line.

3 September 2020: Wouter
	- Merge PR #121: Increase log level of recreated database from
	  WARNING to ERR.

1 September 2020: Wouter
	- Fix #119: fix compile warnings from new gcc.
	- Fix #119: warn when trying to parse a directory.

27 August 2020: Wouter
	- Merged PR #113 with fixes.  Instead of listing an IP-address to
	  listen on, an interface name can be specified in nsd.conf, with
	  ip-address: eth0.  The IP-addresses for that interface are then used.

26 August 2020: Wouter
	- Add xstrdup for PR #113.
	- Tidy up code like in PR #113.
	- Import code from PR #113.
	- Fix for unknown EVP_MAC_CTX_free function in openssl 3.0.0 tsig code.

24 August 2020: Wouter
	- Fix that configure checks for EVP_sha256 to detect openssl, because
	  HMAC_CTX_new is deprecated in 3.0.0.
	- Port TSIG code for openssl 3.0.0-alpha6.
	- Sync acx_nlnetlabs.m4 with the unbound repo.
	- Review fixes for tsig, defensive free and zero.

4 August 2020: Wouter
	- Merge #117: mini_event.h (4.3.2 and 4.3.1) on OpenBSD cannot find
	  fd_set - patch.

23 July 2020: Wouter
	- Merge #115 from millert: Fix strlcpy() usage. From OpenBSD.

15 July 2020: Wouter
	- Fix make install with --with-pidfile="".

14 July 2020: Wouter
	- Tag for 4.3.2 release.  Master branch contains the next version
	  in development, 4.3.3.

7 July 2020: Wouter
	- Tag for 4.3.2rc1.

6 July 2020: Wouter
	- Fix compile includes for xfr-inspect tool on FreeBSD.
	- Add tpkg/run_vm.sh that runs test when in a virtual machine.
	- Merge #112 from jaredmauch: log old and new serials when NSD
	  rejects an IXFR due to an old serial number.
	- Fix bug034 test for vm test changes.

22 June 2020: Wouter
	- Remove errno reset behaviour from sendmmsg and recvmmsg
	  replacement functions.
	- Fix unit test for different nsd-control-setup -h exit code.

19 June 2020: Wouter
	- Merge #108 from Nomis: Make the max-retry-time description clearer.
	- Retry when udp send buffer is full to wait until buffer space is
	  available.

18 June 2020: Wouter
	- Do not log EAGAIN errors for sendmmsg, to stop log spam on OpenBSD.

17 June 2020: Wouter
	- Fix #107: nsd -v shows configure line, openssl version and libevent version.

27 May 2020: Wouter
	- Fix unlink of pidfile warning if not possible due to permissions,
	  nsd can display the message at high verbosity levels.
	- Update contrib/nsd.service for chown of nsd.log and /var/log in
	  ReadWritePaths.
	- Removed contrib/nsd.service, example is too complicated and not
	  useful.

15 May 2020: Wouter
	- Merge PR#102 from and0x000: add missing default in documentation
	  for drop-updates.
	- Fix checkconf test for log-only-syslog option.

14 May 2020: Wouter
	- Document default value for tcp-timeout.

13 May 2020: Jeroen
	- Fix #99: Fix copying of socket properties with reuseport enabled.

24 April 2020: Wouter
	- Fix #97: EDNS unknown version: query not in response.

21 April 2020: Wouter
	- Fix #96: log-only-syslog: yes sets to only use syslog, fixes
	  that the default configuration and systemd results in duplicate
	  log messages.

20 April 2020: Wouter
	- Fix #95: Removed make test check because tpkg not included in
	  release tarballs.
	- Fix unused parameter compile warnings.

16 April 2020: Wouter
	- Tag for 4.3.1 release and track 4.3.2 release in code repository.
	- note sha256 digest algo use in makedist.sh.
	- Fix for posix shell syntax for trap in nsd-control-setup.
	- Fix to omit the listen-on lines from log at startup, unless verbose.
	- Fix uninitialised values for bindtodevice option at startup with
	  reuseport and multiple interfaces.

8 April 2020: Wouter
	- Tag for 4.3.1rc2.

7 April 2020: Wouter
	- Merge PR #91 by gearnode: nsd-control-setup recreate certificates.
	  The '-r' option recreates certificates.  Without it it creates them
	  if they do not exist, and does not modify them otherwise.

6 April 2020: Wouter
	- Merge PR #90 by phicoh: O_CLOEXEC should be FD_CLOEXEC.
	- Merge PR #92 by tonysgi: Fix typo.

2 April 2020: Wouter
	- Tag for 4.3.1rc1.

1 April 2020: Wouter
	- Fix for whitespace in minimal responses test for FreeBSD.

25 March 2020: Wouter
	- Merge PR #86 from noloader: Use precious variables for GREP, EGREP,
	  SED, AWK, LEX and YACC.
	- For PR #86: Fix that programs loaded after CFLAGS and stuff is
	  set, specifically the compiler, so that it can work if it needs
	  special flags from that.  Fix that lex only needs to support -i
	  if actually defined, otherwise the output included in the source
	  tarball can be used.
	- Merge PR #72 from noloader: Increase Travis testing coverage

23 March 2020: Wouter
	- Fix unterminated ifdef in nsd.h.
	- Fix unknown u_long in util.c for Issue #80 .

20 March 2020: Wouter
	- Merge PR #83 from noloader: Fix GNU HURD sched_setaffinity compile.
	- Fix #82: print error when system does not have setaffinity.
	- Fix #80: NetBSD and implicit declaration of reallocarray.
	- Fix for #80: Fix reallocarray test to define before include.
	- Fix for #80: Define alternatives for IFNAMSIZ if it does not exist.

19 March 2020: Wouter
	- Fix #76: cpuid typedef for Hurd, DragonflyBSD compile.
	- Fix #75: configure test for sched_setaffinity, and use
	  cpuset_setaffinity otherwise.  Also test for presence of sysconf.
	- Fix #74: GNU Hurd fix cast from pointer to integer of different size.
	- Fix for #74, #75: cpuset test for header contents and provide code.
	- Fix #78: Fix SO_SETFIB error on FreeBSD.

18 March 2020: Wouter
	- Fix #70: error: 'fd_set' undeclared.
	- Fix #71: error: 'for' loop initial declaration used outside C99
	  mode.
	- Fix to move declarations out of for loops in event test too.
	- Fix to move declarations out of for loops in popen3 test too.
	- Another fix to move declaration out of for loop for event test.
	- Fix to move declarations out of for loops in cutest regex display.

17 March 2020: Wouter
	- tag for 4.3.0 release and master branch has version 4.3.1.

10 March 2020: Wouter
	- repository has version number 4.3.0.  Tag for 4.3.0rc1.

3 March 2020: Wouter
	- Fix that the retry wait does not exceed one day for zone transfers.

27 February 2020: Wouter
	- Fix warning on FreeBSD about pointer size cast.

26 February 2020: Wouter
	- Fixup fix of reuseport TCP for server close of sockets not used
	  by it.  And the unit test skips when the necessary debug output
	  is not enabled.

25 February 2020: Wouter
	- Fix event unit test, signal has to be registered with signal_add,
	  event_add not for every backend for signals.  The event_initialized
	  is not possible for every backend, so event_added variable.  The
	  agent write event fires after a timeout, instead of on event write
	  so that it does not trigger a sigpipe event when the handlers stop.
	  Timeout shorted to 0.1 second.  event_get_fd was not implemented,
	  so used ev_fd.  Debug output printfs added to see what happens.
	- Fix checkconf test for new drop-updates config option.
	- Fix errors with reuseport and TCP file descriptors, it was
	  closing them for server-1 in server-2 and server-3..

7 February 2020: Jeroen
	- Add feature to drop queries with opcode UPDATE.

6 February 2020: Jeroen
	- Support SO_BINDTODEVICE on Linux. Specify bindtodevice: yes
	  to bind sockets directly to the network interface.
	- Support SO_SETFIB on FreeBSD. Add setfib=<FIB> after an ip-address
	  option to use the specified FIB for that socket.
	- Require user to add servers=<range> after an ip-address option to
	  specify the servers that must listen on that socket.

6 February 2020: Wouter
	- Merge PR#60: Minor portability fixes from michaelforney, with
	  avoid pointer arithmetic on void* and avoid unnecessary VLA.

4 February 2020: Wouter
	- Merge PR#22: minimise-any: prefer polular and not large RRset,
	  from Daisuke Higashi.
	- Fix responses for IXFR so that the authority section is not echoed
	  in the response.

21 January 2020: Wouter
	- Fix leak in server bitset setup.

16 January 2020: Jeroen
	- Add zone resource record iterator for future zone-verification port.
	- Set FD_CLOEXEC on opened sockets.
	- Add popen3 implementation for future zone-verification port.
	- Add -r option to cutest so that a subset of tests can be run.

15 January 2020: Jeroen
	- Add feature to pin server proccesses to specific cpus.
	- Add feature to pin IP addresses to selected server processes.
	- Set process title to identify individual processes.

13 January 2020: Wouter
	- Merge pull request #59 from buddyns: add FreeBSD support
	  for conf key ip-transparent.

10 January 2020: Wouter
	- Fix unreachable code in ssl set options code.
	- Fix bad shift in assertion code analyzer complaint.

6 January 2020: Wouter
	- Fix #56: Drop sparse TSIG signing support in NSD.
	  Sign every axfr packet with TSIG, according to the latest
	  draft-ietf-dnsop-rfc2845bis-06, Section 5.3.1.

12 December 2019: Wouter
	- Note that use-systemd is not necessary and ignored in man page.

11 December 2019: Wouter
	- Fix whitespace in nsd.conf.sample.in, patch from Paul Wouters.
	- use-systemd is ignored in nsd.conf, when NSD is compiled with
	  libsystemd it always signals readiness, if possible.

9 December 2019: Wouter
	- Fix to define upper bounds on rr counts read from untrusted packet
	  data.
	- Try different annotation for radix_find_prefix_node not reachable.
	- Separate acl_addr_match_range functions for ip4 and ip6, to
	  please checkers.
	- Avoid unused variable warning in new match_range_v4 function.

6 December 2019: Wouter
	- Fix to define max number of EDNS records we are willing to
	  spend time on.
	- Fix size of string len and capacity type cast in udbradtree.
	- Fix to protect rrcount in tsig_find_rr from overflow.
	- Annotate radix_find_prefix_node not reachable trail code.
	- Fix to protect rrcount in packet_find_notify_serial from overflow.
	- Fix to close socket on error in create_tcp_accept_sock.
	- Fix to log on failure to chmod for socket for remote control.
	- Fix to remove unneeded if in open of socket for remote control.
	- Fix to restore input parameter on call failure in create_dirs.
	- Please checker by terminating and initialising string read
	  by remote control.
	- Fixup of random_generate negative modulo, from previous commit,
	  and return srandom when random is used if no getrandom.

5 December 2019: Wouter
	- Fix fname null check of fname in namedb_read_zonefile.
	- Fix implicit cast of size in udb_radnode_array_grow.
	- Fix ignore of return value of ssl_printf in remote.c.
	- Fix unused check of fd in parent_handle_reload_command.
	- Fix to use getrandom() for randomness, if available.
	- Attempt to fix signedness of nscount lookup in ixfr query_process.
	- Fix identical branches for ssl_print of errors in remote.c.
	- Fix type cast bounds, signedness of opt_rdlen in edns_parse_record.
	- Fix to separate header and data lines in parse_zone_list_file.
2021-03-15 18:38:56 +00:00
jkoshy
86dd7541e7 Update to upstream elftoolchain revision r3933. 2021-03-10 21:36:29 +00:00
christos
7310f7d012 remove extra line 2021-03-08 21:48:22 +00:00
jkoshy
c5261b8388 Update libelf's manual pages to upstream revision [r3928]. 2021-03-08 20:55:06 +00:00
christos
72d8d6c36a Appease new lint enum errors 2021-03-08 19:38:10 +00:00
jkoshy
6357c36138 Sync with Elftoolchain [r3916]: update the list of known EM_* values. 2021-03-07 14:53:59 +00:00
rin
e31cf72b5a Build Xorg server for evbppc with minimum wsfb(4) support for Explora. 2021-03-07 10:42:26 +00:00
christos
0449daef3f TODO and ipfilter improvements from Greg A. Woods 2021-03-07 00:46:39 +00:00
nia
9bdcec1f86 ctwmrc: disable NoTitleFocus to prevent multiple windows having focus
some investigation help from Rhialto
2021-03-04 08:35:58 +00:00
christos
e5814c28b5 Add some jemalloc stubs so we can link as a jemalloc replacement 2021-03-03 21:46:43 +00:00
nia
b68ad6c318 Make this work with a non-standard LOCALBASE. 2021-03-01 15:40:40 +00:00
christos
4d54fa901b Enable more options. 2021-03-01 03:42:57 +00:00
christos
460bb4fcf6 Merge local changes from v2.7 -> v2.9 for wpa_supplicant and hostapd 2021-03-01 01:40:13 +00:00
christos
3d6c0713cb ChangeLog for wpa_supplicant
2019-08-07 - v2.9
	* SAE changes
	  - disable use of groups using Brainpool curves
	  - improved protection against side channel attacks
	  [https://w1.fi/security/2019-6/]
	* EAP-pwd changes
	  - disable use of groups using Brainpool curves
	  - improved protection against side channel attacks
	  [https://w1.fi/security/2019-6/]
	* fixed FT-EAP initial mobility domain association using PMKSA caching
	* added configuration of airtime policy
	* fixed FILS to and RSNE into (Re)Association Response frames
	* fixed DPP bootstrapping URI parser of channel list
	* added support for regulatory WMM limitation (for ETSI)
	* added support for MACsec Key Agreement using IEEE 802.1X/PSK
	* added experimental support for EAP-TEAP server (RFC 7170)
	* added experimental support for EAP-TLS server with TLS v1.3
	* added support for two server certificates/keys (RSA/ECC)
	* added AKMSuiteSelector into "STA <addr>" control interface data to
	  determine with AKM was used for an association
	* added eap_sim_id parameter to allow EAP-SIM/AKA server pseudonym and
	  fast reauthentication use to be disabled
	* fixed an ECDH operation corner case with OpenSSL

2019-04-21 - v2.8
	* SAE changes
	  - added support for SAE Password Identifier
	  - changed default configuration to enable only group 19
	    (i.e., disable groups 20, 21, 25, 26 from default configuration) and
	    disable all unsuitable groups completely based on REVmd changes
	  - improved anti-clogging token mechanism and SAE authentication
	    frame processing during heavy CPU load; this mitigates some issues
	    with potential DoS attacks trying to flood an AP with large number
	    of SAE messages
	  - added Finite Cyclic Group field in status code 77 responses
	  - reject use of unsuitable groups based on new implementation guidance
	    in REVmd (allow only FFC groups with prime >= 3072 bits and ECC
	    groups with prime >= 256)
	  - minimize timing and memory use differences in PWE derivation
	    [https://w1.fi/security/2019-1/] (CVE-2019-9494)
	  - fixed confirm message validation in error cases
	    [https://w1.fi/security/2019-3/] (CVE-2019-9496)
	* EAP-pwd changes
	  - minimize timing and memory use differences in PWE derivation
	    [https://w1.fi/security/2019-2/] (CVE-2019-9495)
	  - verify peer scalar/element
	    [https://w1.fi/security/2019-4/] (CVE-2019-9497 and CVE-2019-9498)
	  - fix message reassembly issue with unexpected fragment
	    [https://w1.fi/security/2019-5/]
	  - enforce rand,mask generation rules more strictly
	  - fix a memory leak in PWE derivation
	  - disallow ECC groups with a prime under 256 bits (groups 25, 26, and
	    27)
	* Hotspot 2.0 changes
	  - added support for release number 3
	  - reject release 2 or newer association without PMF
	* added support for RSN operating channel validation
	  (CONFIG_OCV=y and configuration parameter ocv=1)
	* added Multi-AP protocol support
	* added FTM responder configuration
	* fixed build with LibreSSL
	* added FT/RRB workaround for short Ethernet frame padding
	* fixed KEK2 derivation for FILS+FT
	* added RSSI-based association rejection from OCE
	* extended beacon reporting functionality
	* VLAN changes
	  - allow local VLAN management with remote RADIUS authentication
	  - add WPA/WPA2 passphrase/PSK -based VLAN assignment
	* OpenSSL: allow systemwide policies to be overridden
	* extended PEAP to derive EMSK to enable use with ERP/FILS
	* extended WPS to allow SAE configuration to be added automatically
	  for PSK (wps_cred_add_sae=1)
	* fixed FT and SA Query Action frame with AP-MLME-in-driver cases
	* OWE: allow Diffie-Hellman Parameter element to be included with DPP
	  in preparation for DPP protocol extension
	* RADIUS server: started to accept ERP keyName-NAI as user identity
	  automatically without matching EAP database entry
	* fixed PTK rekeying with FILS and FT

ChangeLog for hostapd

2019-08-07 - v2.9
	* SAE changes
	  - disable use of groups using Brainpool curves
	  - improved protection against side channel attacks
	  [https://w1.fi/security/2019-6/]
	* EAP-pwd changes
	  - disable use of groups using Brainpool curves
	  - allow the set of groups to be configured (eap_pwd_groups)
	  - improved protection against side channel attacks
	  [https://w1.fi/security/2019-6/]
	* fixed FT-EAP initial mobility domain association using PMKSA caching
	  (disabled by default for backwards compatibility; can be enabled
	  with ft_eap_pmksa_caching=1)
	* fixed a regression in OpenSSL 1.1+ engine loading
	* added validation of RSNE in (Re)Association Response frames
	* fixed DPP bootstrapping URI parser of channel list
	* extended EAP-SIM/AKA fast re-authentication to allow use with FILS
	* extended ca_cert_blob to support PEM format
	* improved robustness of P2P Action frame scheduling
	* added support for EAP-SIM/AKA using anonymous@realm identity
	* fixed Hotspot 2.0 credential selection based on roaming consortium
	  to ignore credentials without a specific EAP method
	* added experimental support for EAP-TEAP peer (RFC 7170)
	* added experimental support for EAP-TLS peer with TLS v1.3
	* fixed a regression in WMM parameter configuration for a TDLS peer
	* fixed a regression in operation with drivers that offload 802.1X
	  4-way handshake
	* fixed an ECDH operation corner case with OpenSSL

2019-04-21 - v2.8
	* SAE changes
	  - added support for SAE Password Identifier
	  - changed default configuration to enable only groups 19, 20, 21
	    (i.e., disable groups 25 and 26) and disable all unsuitable groups
	    completely based on REVmd changes
	  - do not regenerate PWE unnecessarily when the AP uses the
	    anti-clogging token mechanisms
	  - fixed some association cases where both SAE and FT-SAE were enabled
	    on both the station and the selected AP
	  - started to prefer FT-SAE over SAE AKM if both are enabled
	  - started to prefer FT-SAE over FT-PSK if both are enabled
	  - fixed FT-SAE when SAE PMKSA caching is used
	  - reject use of unsuitable groups based on new implementation guidance
	    in REVmd (allow only FFC groups with prime >= 3072 bits and ECC
	    groups with prime >= 256)
	  - minimize timing and memory use differences in PWE derivation
	    [https://w1.fi/security/2019-1/] (CVE-2019-9494)
	* EAP-pwd changes
	  - minimize timing and memory use differences in PWE derivation
	    [https://w1.fi/security/2019-2/] (CVE-2019-9495)
	  - verify server scalar/element
	    [https://w1.fi/security/2019-4/] (CVE-2019-9499)
	  - fix message reassembly issue with unexpected fragment
	    [https://w1.fi/security/2019-5/]
	  - enforce rand,mask generation rules more strictly
	  - fix a memory leak in PWE derivation
	  - disallow ECC groups with a prime under 256 bits (groups 25, 26, and
	    27)
	* fixed CONFIG_IEEE80211R=y (FT) build without CONFIG_FILS=y
	* Hotspot 2.0 changes
	  - do not indicate release number that is higher than the one
	    AP supports
	  - added support for release number 3
	  - enable PMF automatically for network profiles created from
	    credentials
	* fixed OWE network profile saving
	* fixed DPP network profile saving
	* added support for RSN operating channel validation
	  (CONFIG_OCV=y and network profile parameter ocv=1)
	* added Multi-AP backhaul STA support
	* fixed build with LibreSSL
	* number of MKA/MACsec fixes and extensions
	* extended domain_match and domain_suffix_match to allow list of values
	* fixed dNSName matching in domain_match and domain_suffix_match when
	  using wolfSSL
	* started to prefer FT-EAP-SHA384 over WPA-EAP-SUITE-B-192 AKM if both
	  are enabled
	* extended nl80211 Connect and external authentication to support
	  SAE, FT-SAE, FT-EAP-SHA384
	* fixed KEK2 derivation for FILS+FT
	* extended client_cert file to allow loading of a chain of PEM
	  encoded certificates
	* extended beacon reporting functionality
	* extended D-Bus interface with number of new properties
	* fixed a regression in FT-over-DS with mac80211-based drivers
	* OpenSSL: allow systemwide policies to be overridden
	* extended driver flags indication for separate 802.1X and PSK
	  4-way handshake offload capability
	* added support for random P2P Device/Interface Address use
	* extended PEAP to derive EMSK to enable use with ERP/FILS
	* extended WPS to allow SAE configuration to be added automatically
	  for PSK (wps_cred_add_sae=1)
	* removed support for the old D-Bus interface (CONFIG_CTRL_IFACE_DBUS)
	* extended domain_match and domain_suffix_match to allow list of values
	* added a RSN workaround for misbehaving PMF APs that advertise
	  IGTK/BIP KeyID using incorrect byte order
	* fixed PTK rekeying with FILS and FT
2021-03-01 01:37:49 +00:00
rin
6350bdacf3 Clean up file obsoleted by migration to usr.bin/resize. 2021-02-27 21:13:09 +00:00
nia
3b21afdc6a ctwmrc: remove SloppyFocus keyword, which breaks xev
the default still seems to be sloppy focus.

is this a bug? does ctwm use a different definition of sloppy focus to
the rest of the world? we may never know
2021-02-27 12:28:17 +00:00
rin
b55bfb6bcb Misc cleanups:
- built-in regex is required only when ${USE_WIDECHAR} == "yes"

- -DUSE_WIDECHAR cpp flag should be determined by ${USE_WIDECHAR},
  not ${USE_BUILTIN_REGEX}

- reduce .if -- .endif block for clarity
2021-02-26 02:54:21 +00:00
christos
b1db991946 Put back local regex (thanks Rin) 2021-02-26 00:41:56 +00:00
christos
fdd5a50616 we don't need the extra copy wide-regex anymore. 2021-02-25 21:56:35 +00:00
rin
b15419e6c4 For SMALLPROG, do not compile in IPv6 support unless SMALLPROG_INET6 is
defined, as in the same manner as other utilities.
2021-02-25 07:55:53 +00:00
joerg
e0056c6160 Don't hard-code LLVM version, but pick it up from build glue. 2021-02-23 15:16:43 +00:00
christos
51673057e9 Locking protocol changed again, adjust. 2021-02-22 01:31:51 +00:00
christos
3b19211590 set explicit_file_name when we use getopt. 2021-02-21 00:36:06 +00:00
christos
107c160af6 merge conflicts 2021-02-20 22:57:56 +00:00
christos
297954931a 2021-01-09 Thomas E. Dickey <dickey@invisible-island.net>
* package/debian/copyright, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
	bump

2021-01-05  Thomas E. Dickey  <dickey@invisible-island.net>

	* configure: regen

	* aclocal.m4: resync with my-autoconf

2020-09-22  Thomas E. Dickey  <dickey@invisible-island.net>

	* closure.c, warshall.c:
	fix undefined-behavior diagnosed with gcc -fsanitize=undefined (report by
	Alexander Richardson)

2020-09-10  Thomas E. Dickey  <dickey@invisible-island.net>

	* LICENSE: RCS_BASE

	* reader.c, output.c: cppcheck -- reduce scope

	* defs.h: update to 2.0

	* test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c, test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax27.tab.c, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, test/yacc/varsyntax_calc1.tab.c:
	update to version 2.0

	* reader.c:
	improve loop which skips backward through a (possibly nested) sequence of
	square-brackets.

	* reader.c: simplify a check to quiet a bogus cppcheck-warning

	* yacc.1: bump date

	* reader.c: add a note about a bogus cppcheck warning

	* configure: regen

	* configure.in:
	always check for gcc attributes, to work around defect in clang's imitation
	of this feature

	* reader.c: cppcheck -- scope reduction
	cppcheck -- eliminate bogus returns after no-return functions

	* verbose.c, output.c, mkpar.c, main.c, warshall.c, lr0.c, lalr.c, graph.c, closure.c:
	cppcheck -- scope reduction

	* package/debian/compat: quiet compatibility-warning

	* yacc.1: use "ASCII" for dashes which are part of proper names

	* configure: regen

	* configure.in: switch to --enable-warnings, for consistency

	* aclocal.m4:
	resync with my-autoconf, for compiler-warning fixes with macOS

	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
	bump

2020-08-16  Thomas E. Dickey  <dickey@invisible-island.net>

	* config.guess, config.sub: 2020-08-17

2020-06-28  Thomas E. Dickey  <dickey@invisible-island.net>

	* config.sub: 2020/06/28

2020-06-14  Thomas E. Dickey  <dickey@invisible-island.net>

	* config.guess: 2020/04/26

2020-03-30  Thomas E. Dickey  <dickey@invisible-island.net>

	* package/debian/copyright: bump

	* test/yacc/grammar.tab.c, test/btyacc/grammar.tab.c, test/grammar.y, reader.c:
	typo found with codespell

	* yacc.1: fixes noted in the original report, overlooked in followup

2020-03-30  Bjarni.Ingi.Gislason

	* yacc.1: typography/spelling fixes - Debian #955175

2020-03-30  Thomas E. Dickey  <dickey@invisible-island.net>

	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
	bump

2020-03-10  Thomas E. Dickey  <dickey@invisible-island.net>

	* configure: regen

	* aclocal.m4:
	resync with my-autoconf, mostly fixes for compiler-warnings

	* configure.in: use macro to suppress X-dependency from newer macros

2019-12-20  Thomas E. Dickey  <dickey@invisible-island.net>

	* config.guess: 2019-12-21

2019-11-25  Tom.Shields

	* main.c:
	fix an inconsistency between the getopt and non-getopt configuration.
	In the former, getopt always used "yacc", not the name of the executable.

2019-11-25  Thomas E. Dickey  <dickey@invisible-island.net>

	* test/run_make.sh:
	suppress bison's -Wyacc warning, which is not useful.

	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
	bump

2019-11-19  Thomas E. Dickey  <dickey@invisible-island.net>

	* yacc.1: new version of manpage

	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
	bump

	* yacc.1: document %code

	* test/btyacc/calc_code_all.error, test/btyacc/calc_code_all.output, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_all.tab.h, test/btyacc/calc_code_default.error, test/btyacc/calc_code_default.output, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_default.tab.h, test/btyacc/calc_code_imports.error, test/btyacc/calc_code_imports.output, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_imports.tab.h, test/btyacc/calc_code_provides.error, test/btyacc/calc_code_provides.output, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_provides.tab.h, test/btyacc/calc_code_requires.error, test/btyacc/calc_code_requires.output, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_requires.tab.h, test/btyacc/calc_code_top.error, test/btyacc/calc_code_top.output, test/btyacc/calc_code_top.tab.c, test/btyacc/calc_code_top.tab.h, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_all.tab.h, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_provides.tab.h, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_requires.tab.h, test/yacc/calc_code_top.tab.c:
	RCS_BASE

	* output.c:
	amend updates for 'outline' when processing "%code" in code-file

	* output.c:
	modify output_code_lines() to show begin/end block comments which were in
	reader.c, and to generate a #line for the code-file.

	* reader.c:
	modify copy_code() to allow for multiple %code directives for a given
	section, recording the input line-number for each directive as a #line
	in the resulting string.  remove the block start/end comments, since those
	will be done for a whole section in output.c

	* mstring.c, defs.h: add msrenew()

	* test/yacc/calc_code_all.error, test/yacc/calc_code_all.output, test/yacc/calc_code_default.error, test/yacc/calc_code_default.output, test/yacc/calc_code_default.tab.h, test/yacc/calc_code_imports.error, test/yacc/calc_code_imports.output, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_imports.tab.h, test/yacc/calc_code_provides.error, test/yacc/calc_code_provides.output, test/yacc/calc_code_requires.error, test/yacc/calc_code_requires.output, test/yacc/calc_code_top.error, test/yacc/calc_code_top.output, test/yacc/calc_code_top.tab.h:
	RCS_BASE

2019-11-18  Thomas E. Dickey  <dickey@invisible-island.net>

	* test/calc_code_imports.y, test/calc_code_all.y, test/calc_code_default.y, test/calc_code_top.y, test/calc_code_provides.y, test/calc_code_requires.y:
	RCS_BASE

2019-11-04  Michael.Forney

	* defs.h: add missing "extern" for new variable "code_lines"

2019-11-03  Thomas E. Dickey  <dickey@invisible-island.net>

	* main.c: build-fix for MinGW cross-compiling

	* output.c, reader.c: gcc-warnings

	* output.c: check validity of text_file before rewind
	remove redundant check of iflag

	* main.c: fix memory-leak reported by clang

	* mkpar.c: guard against a null-reference reported by clang (unlikely)

	* reader.c: fix two coverity warnings:
	a) resource leak on malloc-failure
	b) possible null-pointer dereference on parse-error

	* test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_demo.tab.h: regen

	* defs.h: use enum's to simplify recent change

	* mstring.c:
	enable mstring() in regular byacc, since Zoulas' change relies upon it

2019-11-03  Christos.Zoulas

	* defs.h, reader.c, output.c: add support for bison's "%code" feature
	also fix a small bug: declare YYLTYPE externally when producing locations

2019-11-03  Thomas E. Dickey  <dickey@invisible-island.net>

	* test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error:
	regen

	* test/run_test.sh:
	there's no standard wording for the options-errors from getopt;
	filter that to "error message" in the test reference files.

	* main.c:
	provide for using getopt(), to accommodate a case where developers have
	relied upon non-POSIX behavior.

	* test/run_test.sh:
	getopt's messages do not print the full pathname of yacc in some cases;
	adjust the sed-script which changes those to "YACC"

	* configure: regen

	* config_h.in: regen, using autoheader-252

	* configure.in: add configure check for getopt

	* configure: regen

	* aclocal.m4:
	resync with my-autoconf adds a fix which accommodates a difference in
	warning options between gcc/clang when --enable-warnings is not set.

	* VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
	bump

2019-09-11  Thomas E. Dickey  <dickey@invisible-island.net>

	* config.guess, config.sub: 2019-09-10
2021-02-20 20:30:06 +00:00
skrll
7a3cc25e41 Reapply the following change - Simon's first attempt had a missing ';'
release builds done for cobalt and evbmips64-eb

Provide an __eprol symbol in TEXT_START_SYMBOLS.  MIPS overrides
TEXT_START_SYMBOLS so it misses out on the default definition of
this that does provide an __eprol symbol.  Fixes linking of profiled
binaries.
2021-02-20 14:48:07 +00:00
simonb
be1353c20e Revert the MIPS __eprol change. Unintended fallout that doesn't appear
easy to fix so far.
2021-02-20 02:47:21 +00:00
christos
a10402a4f1 libisc needs libssl now 2021-02-20 01:43:04 +00:00
christos
fce770bd40 merge conflicts, adjust build. 2021-02-19 16:42:08 +00:00
christos
a111e46cec --- 9.16.12 released ---
5578.	[protocol]	Make "check-names" accept A records below "_spf",
			"_spf_rate", and "_spf_verify" labels in order to cater
			for the "exists" SPF mechanism specified in RFC 7208
			section 5.7 and appendix D.1. [GL #2377]

5577.	[bug]		Fix the "three is a crowd" key rollover bug in KASP by
			correctly implementing Equation (2) of the "Flexible and
			Robust Key Rollover" paper. [GL #2375]

5575.	[bug]		When migrating to KASP, BIND 9 considered keys with the
			"Inactive" and/or "Delete" timing metadata to be
			possible active keys. This has been fixed. [GL #2406]

5572.	[bug]		Address potential double free in generatexml().
			[GL #2420]

5571.	[bug]		named failed to start when its configuration included a
			zone with a non-builtin "allow-update" ACL attached.
			[GL #2413]

5570.	[bug]		Improve performance of the DNSSEC verification code by
			reducing the number of repeated calls to
			dns_dnssec_keyfromrdata(). [GL #2073]

5569.	[bug]		Emit useful error message when "rndc retransfer" is
			applied to a zone of inappropriate type. [GL #2342]

5568.	[bug]		Fixed a crash in "dnssec-keyfromlabel" when using ECDSA
			keys. [GL #2178]

5567.	[bug]		Dig now reports unknown dash options while pre-parsing
			the options. This prevents "-multi" instead of "+multi"
			from reporting memory usage before ending option parsing
			with "Invalid option: -lti". [GL #2403]

5566.	[func]		Add "stale-answer-client-timeout" option, which is the
			amount of time a recursive resolver waits before
			attempting to answer the query using stale data from
			cache. [GL #2247]

5565.	[func]		The SONAMEs for BIND 9 libraries now include the current
			BIND 9 version number, in an effort to tightly couple
			internal libraries with a specific release. [GL #2387]

5562.	[security]	Fix off-by-one bug in ISC SPNEGO implementation.
			(CVE-2020-8625) [GL #2354]

5561.	[bug]		KASP incorrectly set signature validity to the value of
			the DNSKEY signature validity. This is now fixed.
			[GL #2383]

5560.	[func]		The default value of "max-stale-ttl" has been changed
			from 12 hours to 1 day and the default value of
			"stale-answer-ttl" has been changed from 1 second to 30
			seconds, following RFC 8767 recommendations. [GL #2248]

5456.	[func]		Added "primaries" as a synonym for "masters" in
			named.conf, and "primary-only" as a synonym for
			"master-only" in the parameters to "notify", to bring
			terminology up-to-date with RFC 8499. [GL #1948]

5362.	[func]		Limit the size of IXFR responses so that AXFR will
			be used instead if it would be smaller. This is
			controlled by the "max-ixfr-ratio" option, which
			is a percentage representing the ratio of IXFR size
			to the size of the entire zone. This value cannot
			exceed 100%, which is the default. [GL #1515]

	--- 9.16.11 released ---

5559.	[bug]		The --with-maxminddb=PATH form of the build-time option
			enabling support for libmaxminddb was not working
			correctly. This has been fixed. [GL #2366]

5557.	[bug]		Prevent RBTDB instances from being destroyed by multiple
			threads at the same time. [GL #2317]

5556.	[bug]		Further tweak newline printing in dnssec-signzone and
			dnssec-verify. [GL #2359]

5555.	[bug]		server->reload_status was not properly initialized.
			[GL #2361]

5554.	[bug]		dnssec-signzone and dnssec-verify were missing newlines
			between log messages. [GL #2359]

5553.	[bug]		When reconfiguring named, removing "auto-dnssec" did not
			turn off DNSSEC maintenance. [GL #2341]

5552.	[func]		When switching to "dnssec-policy none;", named now
			permits a safe transition to insecure mode and publishes
			the CDS and CDNSKEY DELETE records, as described in RFC
			8078. [GL #1750]

5551.	[bug]		named no longer attempts to assign threads to CPUs
			outside the CPU affinity set. Thanks to Ole Bjørn
			Hessen. [GL #2245]

5550.	[func]		dnssec-signzone and named now log a warning when falling
			back to the "increment" SOA serial method. [GL #2058]

5545.	[func]		OS support for load-balanced sockets is no longer
			required to receive incoming queries in multiple netmgr
			threads. [GL #2137]

5543.	[bug]		Fix UDP performance issues caused by making netmgr
			callbacks asynchronous-only. [GL #2320]

5542.	[bug]		Refactor netmgr. [GL #1920] [GL #2034] [GL #2061]
			[GL #2194] [GL #2221] [GL #2266] [GL #2283] [GL #2318]
			[GL #2321]

	--- 9.16.10 released ---

5544.	[func]		Restore the default value of "nocookie-udp-size" to 4096
			bytes. [GL #2250]

5541.	[func]		Adjust the "max-recursion-queries" default from 75 to
			100. [GL #2305]

5540.	[port]		Fix building with native PKCS#11 support for AEP Keyper.
			[GL #2315]

5539.	[bug]		Tighten handling of missing DNS COOKIE responses over
			UDP by falling back to TCP. [GL #2275]

5538.	[func]		Add NSEC3 support to KASP. A new option for
			"dnssec-policy", "nsec3param", can be used to set the
			desired NSEC3 parameters. NSEC3 salt collisions are
			automatically prevented during resalting. Salt
			generation is now logged with zone context. [GL #1620]

5534.	[bug]		The CNAME synthesized from a DNAME was incorrectly
			followed when the QTYPE was CNAME or ANY. [GL #2280]

	--- 9.16.9 released ---

5533.	[func]		Add the "stale-refresh-time" option, a time window that
			starts after a failed lookup, during which a stale RRset
			is served directly from cache before a new attempt to
			refresh it is made. [GL #2066]

5530.	[bug]		dnstap did not capture responses to forwarded UPDATE
			requests. [GL #2252]

5527.	[bug]		A NULL pointer dereference occurred when creating an NTA
			recheck query failed. [GL #2244]

5525.	[bug]		Change 5503 inadvertently broke cross-compilation by
			replacing a call to AC_LINK_IFELSE() with a call to
			AC_RUN_IFELSE() in configure.ac.  This has been fixed,
			making cross-compilation possible again. [GL #2237]

5523.	[bug]		The initial lookup in a zone transitioning to/from a
			signed state could fail if the DNSKEY RRset was not
			found. [GL #2236]

5522.	[bug]		Fixed a race/NULL dereference in TCPDNS send. [GL #2227]

5520.	[bug]		Fixed a number of shutdown races, reference counting
			errors, and spurious log messages that could occur
			in the network manager. [GL #2221]

5518.	[bug]		Stub zones now work correctly with primary servers using
			"minimal-responses yes". [GL #1736]

5517.	[bug]		Do not treat UV_EOF as a TCP4RecvErr or a TCP6RecvErr.
			[GL #2208]

	--- 9.16.8 released ---

5516.	[func]		The default EDNS buffer size has been changed from 4096
			to 1232 bytes. [GL #2183]

5515.	[func]		Add 'rndc dnssec -rollover' command to trigger a manual
			rollover for a specific key. [GL #1749]

5514.	[bug]		Fix KASP expected key size for Ed25519 and Ed448.
			[GL #2171]

5513.	[doc]		The ARM section describing the "rrset-order" statement
			was rewritten to make it unambiguous and up-to-date with
			the source code. [GL #2139]

5512.	[bug]		"rrset-order" rules using "order none" were causing
			named to crash despite named-checkconf treating them as
			valid. [GL #2139]

5511.	[bug]		'dig -u +yaml' failed to display timestamps to the
			microsecond. [GL #2190]

5510.	[bug]		Implement the attach/detach semantics for dns_message_t
			to fix a data race in accessing an already-destroyed
			fctx->rmessage. [GL #2124]

5509.	[bug]		filter-aaaa: named crashed upon shutdown if it was in
			the process of recursing for A RRsets. [GL #1040]

5508.	[func]		Added new parameter "-expired" for "rndc dumpdb" that
			also prints expired RRsets (awaiting cleanup) to the
			dump file. [GL #1870]

5507.	[bug]		Named could compute incorrect SIG(0) responses.
			[GL #2109]

5506.	[bug]		Properly handle failed sysconf() calls, so we don't
			report invalid memory size. [GL #2166]

5505.	[bug]		Updating contents of a mixed-case RPZ could cause some
			rules to be ignored. [GL #2169]

5503.	[bug]		Cleaned up reference counting of network manager
			handles, now using isc_nmhandle_attach() and _detach()
			instead of _ref() and _unref(). [GL #2122]

	--- 9.16.7 released ---

5501.	[func]		Log CDS/CDNSKEY publication. [GL #1748]

5500.	[bug]		Fix (non-)publication of CDS and CDNSKEY records.
			[GL #2103]

5499.	[func]		Add '-P ds' and '-D ds' arguments to dnssec-settime.
			[GL #1748]

5497.	[bug]		'dig +bufsize=0' failed to disable EDNS. [GL #2054]

5496.	[bug]		Address a TSAN report by ensuring each rate limiter
			object holds a reference to its task. [GL #2081]

5495.	[bug]		With query minimization enabled, named failed to
			resolve ip6.arpa. names that had extra labels to the
			left of the IPv6 part. [GL #1847]

5494.	[bug]		Silence the EPROTO syslog message on older systems.
			[GL #1928]

5493.	[bug]		Fix off-by-one error when calculating new hash table
			size. [GL #2104]

5492.	[bug]		Tighten LOC parsing to reject a period (".") and/or "m"
			as a value. Fix handling of negative altitudes which are
			not whole meters. [GL #2074]

5491.	[bug]		rbtversion->glue_table_size could be read without the
			appropriate lock being held. [GL #2080]

5489.	[bug]		Named erroneously accepted certain invalid resource
			records that were incorrectly processed after
			subsequently being written to disk and loaded back, as
			the wire format differed. Such records include: CERT,
			IPSECKEY, NSEC3, NSEC3PARAM, NXT, SIG, TLSA, WKS, and
			X25. [GL !3953]

5488.	[bug]		NTA code needed to have a weak reference on its
			associated view to prevent the latter from being deleted
			while NTA tests were being performed. [GL #2067]

5486.	[func]		Add 'rndc dnssec -checkds' command, which signals to
			named that the DS record for a given zone or key has
			been updated in the parent zone. [GL #1613]

	--- 9.16.6 released ---

5484.	[func]		Expire zero TTL records quickly rather than using them
			for stale answers. [GL #1829]

5483.	[func]		A new configuration option "stale-cache-enable" has been
			introduced to enable or disable keeping stale answers in
			cache. [GL #1712]

5482.	[bug]		If the Duplicate Address Detection (DAD) mechanism had
			not yet finished after adding a new IPv6 address to the
			system, BIND 9 would fail to bind to IPv6 addresses in a
			tentative state. [GL #2038]

5481.	[security]	"update-policy" rules of type "subdomain" were
			incorrectly treated as "zonesub" rules, which allowed
			keys used in "subdomain" rules to update names outside
			of the specified subdomains. The problem was fixed by
			making sure "subdomain" rules are again processed as
			described in the ARM. (CVE-2020-8624) [GL #2055]

5480.	[security]	When BIND 9 was compiled with native PKCS#11 support, it
			was possible to trigger an assertion failure in code
			determining the number of bits in the PKCS#11 RSA public
			key with a specially crafted packet. (CVE-2020-8623)
			[GL #2037]

5479.	[security]	named could crash in certain query resolution scenarios
			where QNAME minimization and forwarding were both
			enabled. (CVE-2020-8621) [GL #1997]

5478.	[security]	It was possible to trigger an assertion failure by
			sending a specially crafted large TCP DNS message.
			(CVE-2020-8620) [GL #1996]

5477.	[bug]		The idle timeout for connected TCP sockets, which was
			previously set to a high fixed value, is now derived
			from the client query processing timeout configured for
			a resolver. [GL #2024]

5476.	[security]	It was possible to trigger an assertion failure when
			verifying the response to a TSIG-signed request.
			(CVE-2020-8622) [GL #2028]

5475.	[bug]		Wildcard RPZ passthru rules could incorrectly be
			overridden by other rules that were loaded from RPZ
			zones which appeared later in the "response-policy"
			statement. This has been fixed. [GL #1619]

5474.	[bug]		dns_rdata_hip_next() failed to return ISC_R_NOMORE
			when it should have. [GL !3880]

5473.	[func]		The RBT hash table implementation has been changed
			to use a faster hash function (HalfSipHash2-4) and
			Fibonacci hashing for better distribution. Setting
			"max-cache-size" now preallocates a fixed-size hash
			table so that rehashing does not cause resolution
			brownouts while the hash table is grown. [GL #1775]

5471.	[bug]		The introduction of KASP support inadvertently caused
			the second field of "sig-validity-interval" to always be
			calculated in hours, even in cases when it should have
			been calculated in days. This has been fixed. (Thanks to
			Tony Finch.) [GL !3735]

5469.	[port]		On illumos, a constant called SEC is already defined in
			<sys/time.h>, which conflicts with an identically named
			constant in libbind9. This conflict has been resolved.
			[GL #1993]

5468.	[bug]		Addressed potential double unlock in process_fd().
			[GL #2005]

5466.	[bug]		Addressed an error in recursive clients stats reporting.
			[GL #1719]

5465.	[func]		Added fallback to built-in trust-anchors, managed-keys,
			or trusted-keys if the bindkeys-file (bind.keys) cannot
			be parsed. [GL #1235]

5464.	[bug]		Requesting more than 128 files to be saved when rolling
			dnstap log files caused a buffer overflow. This has been
			fixed. [GL #1989]

5462.	[bug]		Move LMDB locking from LMDB itself to named. [GL #1976]

5461.	[bug]		The STALE rdataset header attribute was updated while
			the write lock was not being held, leading to incorrect
			statistics. The header attributes are now converted to
			use atomic operations. [GL #1475]
2021-02-19 16:37:01 +00:00
simonb
9963f6aef1 Provide an __eprol symbol in TEXT_START_SYMBOLS. MIPS overrides
TEXT_START_SYMBOLS so it misses out on the default definition of
this that does provide an __eprol symbol.  Fixes linking of profiled
binaries.

OK: christos@
2021-02-19 03:42:02 +00:00
kardel
bc82294d86 PR bin/55973:
fix routing message triggered one shot interface update.
2021-02-18 15:13:37 +00:00
mrg
e384b26c8a remove -DOPT_* from here (now in xtermcfg.h).
restore comment lost in rev 1.18.
2021-02-17 03:06:07 +00:00
hannken
368d0d651b Use the right uid / gid for nobody:nobody like FreeBSD does.
Prevents null pointer dereferences when ZFS replaces this
illegal (according to IS_EPHEMERAL()) id with another
illegal id in operation zfs_fuid_create_cred() and
finally zfs_log_create() dereferences fuidp being NULL.

Adresses PR misc/55042 (Panic when creating a directory on a NFS served ZFS)
2021-02-16 09:54:17 +00:00
mrg
2e97e19f4b add new files for xterm 366. 2021-02-11 12:30:08 +00:00
yamt
3bc7a17908 Make Raspberry PI 3 Model A+ use bwfm config for Model B+
* It works for me.

* It's what linux-firmware does.
  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=923bfa68a1c97929652f029da699495f4ce43f14
2021-02-09 11:57:20 +00:00
tsutsui
d5231b7709 Build mouseEmu3btn.c for added Emulate3Buttons support. 2021-02-07 16:56:00 +00:00
joerg
716cbf2576 Reenable threadsafe sqlite.
Do it properly and only enable thread-safety, but not the worker thread
support. The latter is what requires the whole libpthread dependency.
A potential compromis would be to use a weak pthread_create and only
enable worker threads if it is provided, but given that it is only
really used for large sorts, don't bother for now.
2021-02-05 21:48:52 +00:00
joerg
4f7d5d1727 Pass strings to %s arguments, not void *. 2021-02-05 21:45:24 +00:00
ryoon
8591616ee7 Do not use old-style backquotes and other old-style expressions.
Fix PR misc/55918.
Tested with pkgsrc/editors/emacs26 and emacs27.
2021-02-03 15:42:53 +00:00
fcambus
e679da2743 Fix typo in the comments of local binutils patches: s/Servguard/Segvguard. 2021-02-02 21:45:39 +00:00
fcambus
0df8ae717b Fix typos in the comments of local binutils patches: it's ILP32, not IPL32. 2021-02-01 18:36:32 +00:00
roy
6dc0d09387 ntpd: ignore errno EINTR on reads from the routing socket 2021-01-31 08:27:49 +00:00
roy
f5b263ffef ntpd: move route socket overflow message from LOG_ERR to LOG_DEBUG
While here stop caring about RTM_LOSING as that's purely informational.
If routing does change then we get RTM_ADD/DEL/CHANGE.
Also stop caring about RTM_IFANNOUNCE as we really only want addresses
and interface flag updates which we get by RTM_NEWADDR/DELADDR/CHGADDR and
RTM_IFINFO.
2021-01-31 08:26:47 +00:00
christos
cd642529b3 Don't try print an error message when there is none. 2021-01-28 19:46:54 +00:00
christos
68c9d18d03 PR/55962: Andreas Gustafsson: Some tar(1) error messages lack file name and
newline
2021-01-28 19:42:27 +00:00
kre
8ca3abc975 Merge tzdata2021a 2021-01-24 21:59:37 +00:00