From ef1188b32c718cee9968b9f019e61479a8e20280 Mon Sep 17 00:00:00 2001 From: chengyechun Date: Tue, 14 Mar 2023 15:31:17 +0800 Subject: [PATCH] modify DSA key generation parameters base on openssl3 --- ...neration-parameters-base-on-openssl3.patch | 25 +++++++++++++++++++ ntp.spec | 9 ++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 modify-DSA-key-generation-parameters-base-on-openssl3.patch diff --git a/modify-DSA-key-generation-parameters-base-on-openssl3.patch b/modify-DSA-key-generation-parameters-base-on-openssl3.patch new file mode 100644 index 0000000..515da04 --- /dev/null +++ b/modify-DSA-key-generation-parameters-base-on-openssl3.patch @@ -0,0 +1,25 @@ +From 0494312d943d70f45e45e8e41f659318e88c8e52 Mon Sep 17 00:00:00 2001 +From: chengyechun +Date: Tue, 14 Mar 2023 15:16:47 +0800 +Subject: [PATCH] modify DSA key generation parameters base on openssl3 + +--- + util/ntp-keygen.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/util/ntp-keygen.c b/util/ntp-keygen.c +index eb2cb34..732c073 100644 +--- a/util/ntp-keygen.c ++++ b/util/ntp-keygen.c +@@ -121,7 +121,7 @@ + #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 */ + + /* +-- +2.27.0 + diff --git a/ntp.spec b/ntp.spec index f4f3cab..70019de 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p15 -Release: 6 +Release: 7 Summary: A protocol designed to synchronize the clocks of computers over a network License: MIT and BSD and BSD with advertising URL: https://www.ntp.org/ @@ -26,6 +26,7 @@ Patch3: bugfix-fix-ifindex-length.patch Patch4: fix-multiple-defination-with-gcc-10.patch Patch5: Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch Patch6: fix-MD5-manpage.patch +Patch7: modify-DSA-key-generation-parameters-base-on-openssl3.patch BuildRequires: libcap-devel openssl-devel libedit-devel libevent-devel pps-tools-devel BuildRequires: autogen autogen-libopts-devel systemd gcc perl-generators perl-HTML-Parser @@ -208,6 +209,12 @@ make check %{_mandir}/man8/*.8* %changelog +* Tue Mar 14 2023 chengyechun - 4.2.8p15-7 +* Type:bugfix +- ID:NA +- SUG:NA +- DESC:modify DSA key generation parameters base on openssl3 + * Fri Dec 3 2021 renmingshuai - 4.2.8p15-6 - Type:bugfix - ID:NA -- Gitee