Dave Hart [Fri, 23 Feb 2024 08:49:49 +0000 (08:49 +0000)]
Remove deprecated configure --with-arlib option.
Remove configure support for ISC UNIX ca. 1998.
Move NTP_OPENSSL and NTP_CRYPTO_RAND invocations from configure.ac files
to NTP_LIBNTP.
Move ENABLE_CMAC to ntp_openssl.m4, enabling sntp/tests CMAC unit tests.
Remove dead code: HAVE_U_INT32_ONLY_WITH_DNS.
Eliminate [v]snprintf redefinition warnings on macOS.
Fix clang 14 cast increases alignment warning on Linux.
Move ENABLE_CMAC to ntp_openssl.m4, reviving sntp/tests CMAC unit tests.
Use NTP_HARD_CPPFLAGS in libopts tearoff.
Harlan Stenn [Thu, 1 Feb 2024 02:03:03 +0000 (18:03 -0800)]
Merge ntp-testbuild.tal1.ntfo.org:/home/nfs1.chi1/hart/ntp-stable-3888-3900-01-03
into ntp-testbuild.tal1.ntfo.org:/home/nfs1.tal1/harlan/ntp/ntp-stable-3888-3900-01-03
Dave Hart [Wed, 31 Jan 2024 20:47:13 +0000 (20:47 +0000)]
#ifdef out unused put_ieee754() which triggers a warning and appears buggy.
Insert newlines in long error messages in ntp_openssl.m4, ntp_crypto_rand.m4.
Dave Hart [Tue, 30 Jan 2024 09:00:44 +0000 (09:00 +0000)]
Avoid running checkHtmlFileDates script repeatedly when no html/*.html
files have changed.
Correct comment, clarify configure --help text re: --with-autokey.
Display KoD refid as text in recently added message.
Correct OpenSSL usage in Autokey code to avoid warnings about
discarding const qualifiers with OpenSSL 3.
Avoid clang warning "a function declaration without a prototype is
deprecated in all versions of C".
Abort configure if --enable-crypto-rand given & unavailable.
improve --help output for --enable-c99-snprintf.
Add configure --enable-verbose-ssl to trace SSL detection.
Silence warnings about dropping const qualifier by making a copy
of OpenSSL key data before modifying it in ntp-keygen.
Display KoD refid as text in recently added message.
Add build test coverage for --disable-saveconfig to flock-build script.
Harlan Stenn [Mon, 29 Jan 2024 06:13:14 +0000 (22:13 -0800)]
Merge ntp-testbuild.tal1.ntfo.org:/home/nfs1.chi1/hart/ntp-stable-3847-64/
into ntp-testbuild.tal1.ntfo.org:/home/nfs1.tal1/harlan/ntp/ntp-stable-3847-64
Dave Hart [Sat, 27 Jan 2024 00:22:53 +0000 (00:22 +0000)]
[Bug 3903] lib/isc/win32/strerror.c NTstrerror() is not thread-safe.
Suppress OpenSSL 3 deprecation warning clutter.
Fix problem with statisics files not being generated (broken after 4.2.8p17)
Remove unneeded 200ms wait during NT service shutdown.
Do not compile unneded bsd_strerror.c on Windows.
Reduce HAVE_IO_COMPLETION_PORT #ifdef clutter by moving calls
to io_completion_port_remove_socket into
close_and_delete_fd_from_list().
Silence warnings building on macOS about incompatible types
for timeval.tv_usec.
Move massive config parser debug output from debug level 5 to 9.
Move yylex() debug output from level 4 to level 10.
Change overallocated 1k static lexeme buffer to 128 bytes.
Dave Hart [Mon, 22 Jan 2024 06:54:06 +0000 (06:54 +0000)]
[Bug 3901] LIB_GETBUF isn't thread-safe.
[Bug 3900] fast_xmit() selects wrong local addr responding to mcast on
Windows.
[Bug 3888] ntpd with multiple same-subnet IPs using manycastclient creates
duplicate associations.
Remove useless pointer to Windows Help from system error messages.
Avoid newlines within Windows error messages.
Ensure unique association IDs if wrapped.
Write frequency file to 6 digits after decimal.
Unpeer on shutdown as long done on POSIX systems.
Simplify calc_addr_distance().
Clamp min/maxpoll in edge cases in newpeer().
Quiet local addr change logginig when unpeering.
Correct missing arg for %s printf specifier in
send_blocking_resp_internal().
Dave Hart [Thu, 4 Jan 2024 10:33:34 +0000 (10:33 +0000)]
Further changes to ensure ntp_openssl.m4 does the right thing on systems
where no extra flags are needed to use OpenSSL.
Do not disable periodic network interface scans if we are abot
to get notifications from Windows, as some systems are observed
to get those notifications very late.
Update NEWS to note change to require --without-crypto or error out of configure.
Dave Hart [Mon, 30 Oct 2023 04:31:05 +0000 (04:31 +0000)]
[Bug 3847] SSL detection in configure should run-test if runpath is needed.
Use @configure_input@ in various *.in files to include a comment that
the file is generated from another pointing to the *.in.
Correct underquoting, indents in ntp_facilitynames.m4.
Clean up a few warnings seen building with older gcc.
Fix build on older FreeBSD lacking sys/procctl.h.
Disable [Bug 3627] workaround on newer FreeBSD which has the kernel fix
that makes it unnecessary, re-enabling ASLR stack gap.
Dave Hart [Sat, 30 Sep 2023 05:35:01 +0000 (05:35 +0000)]
[Bug 3871] 4.2.8p17 build without hopf6021 refclock enabled fails.
Reported by Hans Mayer. Moved NONEMPTY_TRANSLATION_UNIT
declaration from ntp_types.h to config.h.
Use NONEMPTY_COMPILATION_UNIT in more conditionally-compiled files.
Dave Hart [Sat, 30 Sep 2023 03:53:06 +0000 (03:53 +0000)]
[Bug 3872] Ignore restrict mask for hostname.
[Bug 3868] Cannot restrict a pool peer.
[Bug 3855] ntpq lacks an equivalent to ntpdc's delrestrict.
Correct handling of not-found or unreadable or corrupt driftfile
to match comments by starting protocol engine in FREQ mode.
Add missing printf-style arg in ntp_util.c.
Update ntp.conf documentation to add "delrestrict" and correct
information about KoD rate limiting.
Dave Hart [Mon, 28 Aug 2023 19:23:24 +0000 (19:23 +0000)]
[Bug 3859] Use NotifyIpInterfaceChange on Windows ntpd.
Update CommitLog build rule for bk 7.x repo format.
Provide ntpd thread names to debugger on Windows.
Remove dead code libntp/numtohost.c and its unit tests.
Remove class A, B, C IPv4 distinctions in netof().