head 1.2; access; symbols pkgsrc-2026Q2:1.1.0.2 pkgsrc-2026Q2-base:1.1; locks; strict; comment @ * @; 1.2 date 2026.09.10.21.25.39; author gutteridge; state dead; branches; next 1.1; commitid dlrTNwitpRnQx7VG; 1.1 date 2026.06.07.17.36.03; author adam; state Exp; branches; next ; commitid jBpT6LGzbsSCkTIG; desc @@ 1.2 log @chrony: update to 4.9 Provided by Thomas Kupper on pkgsrc-users. New in version 4.9 ================== Enhancements ------------ * Add support for OpenBSD * Add refclock driver for OpenBSD timedelta sensors * Add "optional" option to refclock directive to ignore missing devices * Add maxntsretry option to server/pool directive to configure maximum NTS-KE retry interval * Add maxtxbuffers directive to enable processing of hardware and kernel TX timestamps from non-Ethernet devices and tunnels * Add minstratum and maxstratum directives to limit acceptable strata * Add -N option for s6-style service notification * Improve measurement of local clock precision * Reduce impact of client logging on server performance * Update NTP-over-PTP support to final specification (RFC 10030) * Update Nettle support for version 4.0 * Update seccomp filter * Warn if no hostnames of online sources can be resolved * Add -w option to chronyc to enable wider output for IPv6 addresses Bug fixes --------- * Fix ratelimit directives to accept burst values over 32 * Fix handling of hardware RX timestamps with zero interface index @ text @$NetBSD: patch-hash__nettle.c,v 1.1 2026/06/07 17:36:03 adam Exp $ Add support for Nettle 4.0 https://gitlab.com/chrony/chrony/-/commit/fee12ec914cce805cc704a4c2804d75b4933ad2f --- hash_nettle.c.orig 2025-08-27 12:05:31.000000000 +0000 +++ hash_nettle.c @@@@ -30,6 +30,7 @@@@ #include "sysincl.h" #include +#include #include "hash.h" #include "memory.h" @@@@ -91,6 +92,7 @@@@ int HSH_Hash(int id, const void *in1, int in1_len, const void *in2, int in2_len, unsigned char *out, int out_len) { + unsigned char buf[MAX_HASH_LENGTH]; const struct nettle_hash *hash; void *context; @@@@ -103,11 +105,20 @@@@ HSH_Hash(int id, const void *in1, int in if (out_len > hash->digest_size) out_len = hash->digest_size; + if (hash->digest_size > sizeof (buf)) + return 0; + hash->init(context); hash->update(context, in1_len, in1); if (in2) hash->update(context, in2_len, in2); - hash->digest(context, out_len, out); + hash->digest(context, +#if NETTLE_VERSION_MAJOR < 4 + hash->digest_size, +#endif + buf); + + memcpy(out, buf, out_len); return out_len; } @ 1.1 log @chrony: Add support for Nettle 4.0; bump revision @ text @d1 1 a1 1 $NetBSD$ @