---
+* [Bug 3802] ntp-keygen -I default identity modulus bits too small for
+ OpenSSL 3. Reported by rmsh1216@163.com <hart@ntp.org>
* [Bug 3797] Windows getaddrinfo w/AI_ADDRCONFIG fails for localhost when
disconnected, breaking ntpq and ntpdc. <hart@ntp.org>
* [Bug 3795] pollskewlist documentation uses | when it shouldn't.
- applied patch by Gerry Garvey
* [Bug 3432] refclocks that 'write()' should check the result <perlinger@ntp.org>
- backport from -dev, plus some more work on warnings for unchecked results
+* [Bug 3103] libopts zsave_warn format string too few arguments <bkorb@gnu.org>
* [Bug 2525] Turn on automake subdir-objects across the project. <hart@ntp.org>
* [Bug 2410] syslog an error message on panic exceeded. <brian.utterback@oracle.com>
* Use https in the AC_INIT URLs in configure.ac. <stenn@ntp.org>
copyright = {
date = "1992-2023";
owner = "The University of Delaware and Network Time Foundation";
- eaddr = "http://bugs.ntp.org, bugs@ntp.org";
+ eaddr = "https://bugs.ntp.org, bugs@ntp.org";
type = ntp;
};
int
-main()
+main(void)
{
l_fp l;
int rc;
ifdef = AUTOKEY;
descrip = "identity modulus bits";
doc = <<- _EndOfDoc_
- The number of bits in the identity modulus. The default is 256.
+ The number of bits in the identity modulus. The default is 512.
_EndOfDoc_;
};
#define MD5SIZE 20 /* maximum key size */
#ifdef AUTOKEY
#define PLEN 512 /* default prime modulus size (bits) */
-#define ILEN 256 /* default identity modulus size (bits) */
+#define ILEN 512 /* default identity modulus size (bits) */
#define MVMAX 100 /* max MV parameters */
/*
/*
* followlink() - replace filename with its target if symlink.
*
- * Some readlink() implementations do not null-terminate the result.
+ * readlink() does not null-terminate the result.
*/
void
followlink(
size_t bufsiz
)
{
- int len;
+ ssize_t len;
+ char * target;
REQUIRE(bufsiz > 0);
- len = readlink(fname, fname, (int)bufsiz);
+ target = emalloc(bufsiz);
+ len = readlink(fname, target, bufsiz);
if (len < 0 ) {
fname[0] = '\0';
return;
}
if (len > (int)bufsiz - 1)
len = (int)bufsiz - 1;
+ memcpy(fname, target, len);
fname[len] = '\0';
+ free(target);
}