Changes since OpenNTPD 5.7p3 ============================ * Added support for using HTTPS time constraints to validate NTP responses. * Workaround a bug in the Solaris adjtime call that caused the olddelta to never reach 0, leading to continual sync/unsync messages from ntpd. * Workaround an overflow on systems with 32-bit time_t. This can result in a failure to set the time if the initial clock is set later than early 2036. Systems with a 32-bit time_t should upgrade well in advance of this date, but today this helps with systems that boot with an invalid initial time. Note:the HTTPS time constraints feature is not currently available in pkgsrc due to the lack of libtls.
17 lines
462 B
C
17 lines
462 B
C
$NetBSD: patch-src_config.c,v 1.1 2015/07/03 12:31:12 wiz Exp $
|
|
|
|
Abort if configuration specifies tls constraints and ntpd not compiled with
|
|
tls support; accepted upstream.
|
|
|
|
--- src/config.c.orig 2015-03-25 01:18:56.000000000 +0000
|
|
+++ src/config.c
|
|
@@ -218,6 +218,9 @@ new_constraint(void)
|
|
fatal("new_constraint calloc");
|
|
p->id = ++constraint_maxid;
|
|
|
|
+#ifndef HAVE_LIBTLS
|
|
+ fatal("constraint configured without libtls support");
|
|
+#endif
|
|
return (p);
|
|
}
|
|
|