!39 [sync] PR-38: modify DSA key generation parameters base on openssl3

From: @openeuler-sync-bot 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
This commit is contained in:
openeuler-ci-bot 2023-03-14 13:03:19 +00:00 committed by Gitee
commit ae9357ff78
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 0494312d943d70f45e45e8e41f659318e88c8e52 Mon Sep 17 00:00:00 2001
From: chengyechun <chengyechun1@huawei.com>
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

View File

@ -2,7 +2,7 @@
Name: ntp Name: ntp
Version: 4.2.8p15 Version: 4.2.8p15
Release: 6 Release: 7
Summary: A protocol designed to synchronize the clocks of computers over a network Summary: A protocol designed to synchronize the clocks of computers over a network
License: MIT and BSD and BSD with advertising License: MIT and BSD and BSD with advertising
URL: https://www.ntp.org/ URL: https://www.ntp.org/
@ -26,6 +26,7 @@ Patch3: bugfix-fix-ifindex-length.patch
Patch4: fix-multiple-defination-with-gcc-10.patch Patch4: fix-multiple-defination-with-gcc-10.patch
Patch5: Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch Patch5: Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
Patch6: fix-MD5-manpage.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: libcap-devel openssl-devel libedit-devel libevent-devel pps-tools-devel
BuildRequires: autogen autogen-libopts-devel systemd gcc perl-generators perl-HTML-Parser BuildRequires: autogen autogen-libopts-devel systemd gcc perl-generators perl-HTML-Parser
@ -208,6 +209,12 @@ make check
%{_mandir}/man8/*.8* %{_mandir}/man8/*.8*
%changelog %changelog
* Tue Mar 14 2023 chengyechun<chengyechun1@huawei.com> - 4.2.8p15-7
* Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify DSA key generation parameters base on openssl3
* Fri Dec 3 2021 renmingshuai<renmingshuai@huawei.com> - 4.2.8p15-6 * Fri Dec 3 2021 renmingshuai<renmingshuai@huawei.com> - 4.2.8p15-6
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA