* AES-128-CMAC support. BInglis, HStenn, JPerlinger.
* sntp: tweak key file logging. HStenn.
* sntp: pkt_output(): Improve debug output. HStenn.
+* update-leap: updates from Paul McMath.
---
(4.2.8p10) 2017/03/21 Released by Harlan Stenn <stenn@ntp.org>
our(%opt);
-GetOptions(\%opt,
+GetOptions(\%opt,
'C=s',
'D=s',
'e:60',
$TOTERM = 1;
}
+if (defined $opt{q} && defined $opt{v}) {
+ log_fatal(LOG_ERR, '-q and -v options mutually exclusive');
+}
+
+if (defined $opt{L} && defined $opt{f}) {
+ log_fatal(LOG_ERR, '-L and -f options mutually exclusive');
+}
+
$SIG{INT} = \&signal_catcher;
$SIG{TERM} = \&signal_catcher;
$SIG{QUIT} = \&signal_catcher;
exit 0;
}
-if ($QUIET && $DEBUG) {
- log_fatal(LOG_ERR, '-q and -d options mutually exclusive');
-}
-
-if ($LEAPFILE && $NTPCONF) {
- log_fatal(LOG_ERR, '-L and -f options mutually exclusive');
-}
-
# Parse ntp.conf for path to leapfile if not set by user
if (! $LEAPFILE) {
}
# Failure
+ unlink $TMP_FILE;
logger(LOG_INFO, "Download failed. Waiting $INTERVAL minutes before retrying...");
sleep $INTERVAL * 60 ;
}
# unknown state).
#
# HTTP::Tiny doesn't export a method to explicitly close a connected
-# socket, therefore, we instantiate the lexically scoped object in a
-# function; when the function returns, the http object goes out of
-# scope and is destroyed, closing the socket.
+# socket, therefore, we instantiate the lexically scoped $http object in
+# a function; when the function returns, the object goes out of scope
+# and is destroyed, closing the socket.
sub retrieve_file {
my $fh = shift;