diff options
Diffstat (limited to 'sntp')
-rw-r--r-- | sntp/config.h.in | 3 | ||||
-rwxr-xr-x | sntp/configure | 23 | ||||
-rw-r--r-- | sntp/crypto.c | 12 | ||||
-rw-r--r-- | sntp/include/version.def | 2 | ||||
-rw-r--r-- | sntp/include/version.texi | 6 | ||||
-rw-r--r-- | sntp/invoke-sntp.texi | 4 | ||||
-rw-r--r-- | sntp/m4/ntp_libntp.m4 | 1 | ||||
-rw-r--r-- | sntp/m4/version.m4 | 2 | ||||
-rw-r--r-- | sntp/sntp-opts.c | 14 | ||||
-rw-r--r-- | sntp/sntp-opts.h | 6 | ||||
-rw-r--r-- | sntp/sntp.1sntpman | 6 | ||||
-rw-r--r-- | sntp/sntp.1sntpmdoc | 4 | ||||
-rw-r--r-- | sntp/sntp.html | 4 | ||||
-rw-r--r-- | sntp/sntp.man.in | 6 | ||||
-rw-r--r-- | sntp/sntp.mdoc.in | 4 | ||||
-rw-r--r-- | sntp/version.c | 2 |
16 files changed, 56 insertions, 43 deletions
diff --git a/sntp/config.h.in b/sntp/config.h.in index 2013ce398e12b..ac059d7aaa4a7 100644 --- a/sntp/config.h.in +++ b/sntp/config.h.in @@ -719,6 +719,9 @@ /* Does the target support multicast IP? */ #undef MCAST +/* having to fork the DNS worker early when doing chroot? */ +#undef NEED_EARLY_FORK + /* pthread_init() required? */ #undef NEED_PTHREAD_INIT diff --git a/sntp/configure b/sntp/configure index b4ce6def9062d..75555f6643a61 100755 --- a/sntp/configure +++ b/sntp/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for sntp 4.2.8p6. +# Generated by GNU Autoconf 2.69 for sntp 4.2.8p7. # # Report bugs to <http://bugs.ntp.org./>. # @@ -590,8 +590,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='sntp' PACKAGE_TARNAME='sntp' -PACKAGE_VERSION='4.2.8p6' -PACKAGE_STRING='sntp 4.2.8p6' +PACKAGE_VERSION='4.2.8p7' +PACKAGE_STRING='sntp 4.2.8p7' PACKAGE_BUGREPORT='http://bugs.ntp.org./' PACKAGE_URL='http://www.ntp.org./' @@ -1491,7 +1491,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sntp 4.2.8p6 to adapt to many kinds of systems. +\`configure' configures sntp 4.2.8p7 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1561,7 +1561,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sntp 4.2.8p6:";; + short | recursive ) echo "Configuration of sntp 4.2.8p7:";; esac cat <<\_ACEOF @@ -1706,7 +1706,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sntp configure 4.2.8p6 +sntp configure 4.2.8p7 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2536,7 +2536,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sntp $as_me 4.2.8p6, which was +It was created by sntp $as_me 4.2.8p7, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3533,7 +3533,7 @@ fi # Define the identity of the package. PACKAGE='sntp' - VERSION='4.2.8p6' + VERSION='4.2.8p7' cat >>confdefs.h <<_ACEOF @@ -9689,6 +9689,9 @@ fi done + +$as_echo "#define NEED_EARLY_FORK 1" >>confdefs.h + esac for ac_header in arpa/nameser.h sys/param.h sys/time.h sys/timers.h @@ -31110,7 +31113,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sntp $as_me 4.2.8p6, which was +This file was extended by sntp $as_me 4.2.8p7, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -31177,7 +31180,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sntp config.status 4.2.8p6 +sntp config.status 4.2.8p7 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff --git a/sntp/crypto.c b/sntp/crypto.c index 234e137444e77..a534239a31f86 100644 --- a/sntp/crypto.c +++ b/sntp/crypto.c @@ -1,6 +1,7 @@ #include <config.h> #include "crypto.h" #include <ctype.h> +#include "isc/string.h" struct key *key_ptr; size_t key_cnt = 0; @@ -56,11 +57,16 @@ auth_md5( pkt_ptr = pkt_data; hash_len = make_mac(pkt_ptr, pkt_size, sizeof(digest), cmp_key, digest); - if (!hash_len) + if (!hash_len) { authentic = FALSE; - else - authentic = !memcmp(digest, pkt_ptr + pkt_size + 4, + } else { + /* isc_tsmemcmp will be better when its easy to link + * with. sntp is a 1-shot program, so snooping for + * timing attacks is Harder. + */ + authentic = !memcmp(digest, pkt_data + pkt_size + 4, hash_len); + } return authentic; } diff --git a/sntp/include/version.def b/sntp/include/version.def index 5a081745d2209..a6eb3b44c020f 100644 --- a/sntp/include/version.def +++ b/sntp/include/version.def @@ -1 +1 @@ -version = '4.2.8p6'; +version = '4.2.8p7'; diff --git a/sntp/include/version.texi b/sntp/include/version.texi index fa9aeb37c61da..d6049641f24dd 100644 --- a/sntp/include/version.texi +++ b/sntp/include/version.texi @@ -1,3 +1,3 @@ -@set UPDATED 20 January 2016 -@set EDITION 4.2.8p6 -@set VERSION 4.2.8p6 +@set UPDATED 26 April 2016 +@set EDITION 4.2.8p7 +@set VERSION 4.2.8p7 diff --git a/sntp/invoke-sntp.texi b/sntp/invoke-sntp.texi index 695c9eb0c8bc1..455dc36d593dc 100644 --- a/sntp/invoke-sntp.texi +++ b/sntp/invoke-sntp.texi @@ -6,7 +6,7 @@ # # EDIT THIS FILE WITH CAUTION (invoke-sntp.texi) # -# It has been AutoGen-ed January 20, 2016 at 04:06:42 AM by AutoGen 5.18.5 +# It has been AutoGen-ed April 26, 2016 at 08:21:12 PM by AutoGen 5.18.5 # From the definitions sntp-opts.def # and the template file agtexi-cmd.tpl @end ignore @@ -101,7 +101,7 @@ with a status code of 0. @exampleindent 0 @example -sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p6 +sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p7 Usage: sntp [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... \ [ hostname-or-IP ...] Flg Arg Option-Name Description diff --git a/sntp/m4/ntp_libntp.m4 b/sntp/m4/ntp_libntp.m4 index 01d82fcd55043..1263423eda03f 100644 --- a/sntp/m4/ntp_libntp.m4 +++ b/sntp/m4/ntp_libntp.m4 @@ -163,6 +163,7 @@ case "$host" in # include <sys/socket.h> #endif ]) + AC_DEFINE([NEED_EARLY_FORK], [1], [having to fork the DNS worker early when doing chroot?]) esac AC_CHECK_HEADERS([arpa/nameser.h sys/param.h sys/time.h sys/timers.h]) diff --git a/sntp/m4/version.m4 b/sntp/m4/version.m4 index 236cc1889632b..87597f3a3d49c 100644 --- a/sntp/m4/version.m4 +++ b/sntp/m4/version.m4 @@ -1 +1 @@ -m4_define([VERSION_NUMBER],[4.2.8p6]) +m4_define([VERSION_NUMBER],[4.2.8p7]) diff --git a/sntp/sntp-opts.c b/sntp/sntp-opts.c index d11f0b2169d98..71c8ab0678939 100644 --- a/sntp/sntp-opts.c +++ b/sntp/sntp-opts.c @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (sntp-opts.c) * - * It has been AutoGen-ed January 20, 2016 at 04:06:07 AM by AutoGen 5.18.5 + * It has been AutoGen-ed April 26, 2016 at 08:20:39 PM by AutoGen 5.18.5 * From the definitions sntp-opts.def * and the template file options * @@ -70,7 +70,7 @@ extern FILE * option_usage_fp; * static const strings for sntp options */ static char const sntp_opt_strs[2549] = -/* 0 */ "sntp 4.2.8p6\n" +/* 0 */ "sntp 4.2.8p7\n" "Copyright (C) 1992-2016 The University of Delaware and Network Time Foundation, all rights reserved.\n" "This is free software. It is licensed for use, modification and\n" "redistribution under the terms of the NTP License, copies of which\n" @@ -155,7 +155,7 @@ static char const sntp_opt_strs[2549] = /* 2298 */ "LOAD_OPTS\0" /* 2308 */ "no-load-opts\0" /* 2321 */ "SNTP\0" -/* 2326 */ "sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p6\n" +/* 2326 */ "sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p7\n" "Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n" "\t\t[ hostname-or-IP ...]\n\0" /* 2485 */ "$HOME\0" @@ -163,7 +163,7 @@ static char const sntp_opt_strs[2549] = /* 2493 */ ".ntprc\0" /* 2500 */ "http://bugs.ntp.org, bugs@ntp.org\0" /* 2534 */ "\n\0" -/* 2536 */ "sntp 4.2.8p6"; +/* 2536 */ "sntp 4.2.8p7"; /** * ipv4 option description with @@ -1173,7 +1173,7 @@ static void bogus_function(void) { translate option names. */ /* referenced via sntpOptions.pzCopyright */ - puts(_("sntp 4.2.8p6\n\ + puts(_("sntp 4.2.8p7\n\ Copyright (C) 1992-2016 The University of Delaware and Network Time Foundation, all rights reserved.\n\ This is free software. It is licensed for use, modification and\n\ redistribution under the terms of the NTP License, copies of which\n\ @@ -1263,7 +1263,7 @@ implied warranty.\n")); puts(_("load options from a config file")); /* referenced via sntpOptions.pzUsageTitle */ - puts(_("sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p6\n\ + puts(_("sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p7\n\ Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n\ \t\t[ hostname-or-IP ...]\n")); @@ -1271,7 +1271,7 @@ Usage: %s [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \\\n\ puts(_("\n")); /* referenced via sntpOptions.pzFullVersion */ - puts(_("sntp 4.2.8p6")); + puts(_("sntp 4.2.8p7")); /* referenced via sntpOptions.pzFullUsage */ puts(_("<<<NOT-FOUND>>>")); diff --git a/sntp/sntp-opts.h b/sntp/sntp-opts.h index ab741c7f02d6c..0c8fae6ffe664 100644 --- a/sntp/sntp-opts.h +++ b/sntp/sntp-opts.h @@ -1,7 +1,7 @@ /* * EDIT THIS FILE WITH CAUTION (sntp-opts.h) * - * It has been AutoGen-ed January 20, 2016 at 04:06:06 AM by AutoGen 5.18.5 + * It has been AutoGen-ed April 26, 2016 at 08:20:38 PM by AutoGen 5.18.5 * From the definitions sntp-opts.def * and the template file options * @@ -91,9 +91,9 @@ typedef enum { /** count of all options for sntp */ #define OPTION_CT 23 /** sntp version */ -#define SNTP_VERSION "4.2.8p6" +#define SNTP_VERSION "4.2.8p7" /** Full sntp version text */ -#define SNTP_FULL_VERSION "sntp 4.2.8p6" +#define SNTP_FULL_VERSION "sntp 4.2.8p7" /** * Interface defines for all options. Replace "n" with the UPPER_CASED diff --git a/sntp/sntp.1sntpman b/sntp/sntp.1sntpman index 0a83bd31e248a..e0f0553b2e907 100644 --- a/sntp/sntp.1sntpman +++ b/sntp/sntp.1sntpman @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH sntp 1sntpman "20 Jan 2016" "4.2.8p6" "User Commands" +.TH sntp 1sntpman "26 Apr 2016" "4.2.8p7" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-vxaitn/ag-Ixaasn) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-EjaOrb/ag-RjaGqb) .\" -.\" It has been AutoGen-ed January 20, 2016 at 04:06:38 AM by AutoGen 5.18.5 +.\" It has been AutoGen-ed April 26, 2016 at 08:21:08 PM by AutoGen 5.18.5 .\" From the definitions sntp-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/sntp/sntp.1sntpmdoc b/sntp/sntp.1sntpmdoc index 86b72ad0c04d8..959ab833fea3b 100644 --- a/sntp/sntp.1sntpmdoc +++ b/sntp/sntp.1sntpmdoc @@ -1,9 +1,9 @@ -.Dd January 20 2016 +.Dd April 26 2016 .Dt SNTP 1sntpmdoc User Commands .Os .\" EDIT THIS FILE WITH CAUTION (sntp-opts.mdoc) .\" -.\" It has been AutoGen-ed January 20, 2016 at 04:06:45 AM by AutoGen 5.18.5 +.\" It has been AutoGen-ed April 26, 2016 at 08:21:15 PM by AutoGen 5.18.5 .\" From the definitions sntp-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/sntp/sntp.html b/sntp/sntp.html index 61efd50ebd813..2bbb8a11fd158 100644 --- a/sntp/sntp.html +++ b/sntp/sntp.html @@ -36,7 +36,7 @@ display the time offset of the system clock relative to the server clock. Run as root, it can correct the system clock to this offset as well. It can be run as an interactive command or from a cron job. - <p>This document applies to version 4.2.8p6 of <code>sntp</code>. + <p>This document applies to version 4.2.8p7 of <code>sntp</code>. <p>The program implements the SNTP protocol as defined by RFC 5905, the NTPv4 IETF specification. @@ -176,7 +176,7 @@ the usage text by passing it through a pager program. used to select the program, defaulting to <span class="file">more</span>. Both will exit with a status code of 0. -<pre class="example">sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p6 +<pre class="example">sntp - standard Simple Network Time Protocol client program - Ver. 4.2.8p7 Usage: sntp [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \ [ hostname-or-IP ...] Flg Arg Option-Name Description diff --git a/sntp/sntp.man.in b/sntp/sntp.man.in index c223eb51378ae..f136a727e6e30 100644 --- a/sntp/sntp.man.in +++ b/sntp/sntp.man.in @@ -10,11 +10,11 @@ .ds B-Font B .ds I-Font I .ds R-Font R -.TH sntp @SNTP_MS@ "20 Jan 2016" "4.2.8p6" "User Commands" +.TH sntp @SNTP_MS@ "26 Apr 2016" "4.2.8p7" "User Commands" .\" -.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-vxaitn/ag-Ixaasn) +.\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-EjaOrb/ag-RjaGqb) .\" -.\" It has been AutoGen-ed January 20, 2016 at 04:06:38 AM by AutoGen 5.18.5 +.\" It has been AutoGen-ed April 26, 2016 at 08:21:08 PM by AutoGen 5.18.5 .\" From the definitions sntp-opts.def .\" and the template file agman-cmd.tpl .SH NAME diff --git a/sntp/sntp.mdoc.in b/sntp/sntp.mdoc.in index 2e15332ce9c2e..00a18e180e215 100644 --- a/sntp/sntp.mdoc.in +++ b/sntp/sntp.mdoc.in @@ -1,9 +1,9 @@ -.Dd January 20 2016 +.Dd April 26 2016 .Dt SNTP @SNTP_MS@ User Commands .Os .\" EDIT THIS FILE WITH CAUTION (sntp-opts.mdoc) .\" -.\" It has been AutoGen-ed January 20, 2016 at 04:06:45 AM by AutoGen 5.18.5 +.\" It has been AutoGen-ed April 26, 2016 at 08:21:15 PM by AutoGen 5.18.5 .\" From the definitions sntp-opts.def .\" and the template file agmdoc-cmd.tpl .Sh NAME diff --git a/sntp/version.c b/sntp/version.c index 762eeb7d67bc9..7eae7112850f8 100644 --- a/sntp/version.c +++ b/sntp/version.c @@ -2,4 +2,4 @@ * version file for sntp */ #include <config.h> -const char * Version = "sntp 4.2.8p5@1.3265-o Wed Jan 20 09:06:36 UTC 2016 (27)"; +const char * Version = "sntp 4.2.8p6@1.3265-o Wed Apr 27 00:21:06 UTC 2016 (28)"; |