!146 update patch to remove function declare in header file

From: @xuraoqing 
Reviewed-by: @zcfsite 
Signed-off-by: @zcfsite
This commit is contained in:
openeuler-ci-bot 2024-03-27 07:29:44 +00:00 committed by Gitee
commit 1276eea055
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 18 additions and 8 deletions

View File

@ -22,10 +22,10 @@ Conflict: lib/nettle/pk.c,
lib/nettle/int/dsa-compute-k.c | 82 ++++++++++++++++++++-----------
lib/nettle/int/dsa-compute-k.h | 31 +++++++++---
lib/nettle/int/ecdsa-compute-k.c | 33 +++----------
lib/nettle/int/ecdsa-compute-k.h | 1 +
lib/nettle/int/ecdsa-compute-k.h | 8 +--
lib/nettle/pk.c | 79 +++++++++++++++++++----------
tests/sign-verify-deterministic.c | 2 +-
6 files changed, 138 insertions(+), 90 deletions(-)
6 files changed, 138 insertions(+), 97 deletions(-)
diff --git a/lib/nettle/int/dsa-compute-k.c b/lib/nettle/int/dsa-compute-k.c
index 17d6331..649a194 100644
@ -278,13 +278,20 @@ index 94914eb..d98f246 100644
- return ret;
-}
diff --git a/lib/nettle/int/ecdsa-compute-k.h b/lib/nettle/int/ecdsa-compute-k.h
index 7ca401d..593910a 100644
index 7ca401d..a7e612b 100644
--- a/lib/nettle/int/ecdsa-compute-k.h
+++ b/lib/nettle/int/ecdsa-compute-k.h
@@ -33,5 +33,6 @@ _gnutls_ecdsa_compute_k (mpz_t k,
gnutls_mac_algorithm_t mac,
const uint8_t *digest,
size_t length);
@@ -26,12 +26,6 @@
#include <gnutls/gnutls.h>
#include <nettle/bignum.h> /* includes gmp.h */
-int
-_gnutls_ecdsa_compute_k (mpz_t k,
- gnutls_ecc_curve_t curve,
- const mpz_t x,
- gnutls_mac_algorithm_t mac,
- const uint8_t *digest,
- size_t length);
+int _gnutls_ecc_curve_to_dsa_q(mpz_t q, gnutls_ecc_curve_t curve);
#endif /* GNUTLS_LIB_NETTLE_INT_ECDSA_COMPUTE_K_H */

View File

@ -1,6 +1,6 @@
Name: gnutls
Version: 3.7.2
Release: 12
Release: 13
Summary: The GNU Secure Communication Protocol Library
License: LGPLv2.1+ and GPLv3+
@ -224,6 +224,9 @@ make check %{?_smp_mflags}
%endif
%changelog
* Tue Mar 26 2024 xuraoqing <xuraoqing@huawei.com> - 3.7.2-13
- update patch to remove function declare in header file
* Sat Mar 23 2024 xuraoqing <xuraoqing@huawei.com> - 3.7.2-12
- fix CVE-2024-28834