From 3559e3370781a93bf056a9e389fe2edc98117824 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 26 Jul 2024 15:49:32 +0900 Subject: [PATCH] Fix configure check on nettle_rsa_oaep_* functions Related: RHEL-50011 Signed-off-by: Daiki Ueno --- gnutls-3.8.6-nettle-rsa-oaep.patch | 27 +++++++++++++++++++++++++++ gnutls.spec | 1 + 2 files changed, 28 insertions(+) create mode 100644 gnutls-3.8.6-nettle-rsa-oaep.patch diff --git a/gnutls-3.8.6-nettle-rsa-oaep.patch b/gnutls-3.8.6-nettle-rsa-oaep.patch new file mode 100644 index 0000000..d8f0b4b --- /dev/null +++ b/gnutls-3.8.6-nettle-rsa-oaep.patch @@ -0,0 +1,27 @@ +From a9800309197fe5aef913944b2fc77164946f0689 Mon Sep 17 00:00:00 2001 +From: Daiki Ueno +Date: Tue, 23 Jul 2024 16:04:56 +0900 +Subject: [PATCH] build: link against libhogweed when checking + nettle_rsa_oaep_* + +Signed-off-by: Daiki Ueno +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index fb0aefe1f4..8b55808bd7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -795,7 +795,7 @@ AM_CONDITIONAL([NEED_SIV_GCM], [test "$ac_cv_func_nettle_siv_gcm_encrypt_message + + # Check for RSA-OAEP + save_LIBS=$LIBS +-LIBS="$LIBS $NETTLE_LIBS" ++LIBS="$LIBS $HOGWEED_LIBS $NETTLE_LIBS $GMP_LIBS" + AC_CHECK_FUNCS(nettle_rsa_oaep_sha256_encrypt) + LIBS=$save_LIBS + AM_CONDITIONAL([NEED_RSA_OAEP], [test "$ac_cv_func_nettle_rsa_oaep_sha256_encrypt" != yes]) +-- +2.45.2 + diff --git a/gnutls.spec b/gnutls.spec index 9fac30f..b9b98c8 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -20,6 +20,7 @@ Patch: gnutls-3.2.7-rpath.patch Patch: gnutls-3.7.8-ktls_skip_tls12_chachapoly_test.patch Patch: gnutls-3.8.6-compression-dlwrap.patch Patch: gnutls-3.8.6-liboqs-x25519-kyber768d00.patch +Patch: gnutls-3.8.6-nettle-rsa-oaep.patch %bcond_without bootstrap %bcond_without dane