gnutls/gnutls-detect_nettle_so.patch
Tomáš Chvátal e295d5946a Accepting request 821490 from home:vitezslav_cizek:branches:security:tls
- Correctly detect gmp, nettle, and hogweed libraries (bsc#1172666)
  * add gnutls-detect_nettle_so.patch

  * add gnutls-temporarily_disable_broken_guile_reauth_test.patch

OBS-URL: https://build.opensuse.org/request/show/821490
OBS-URL: https://build.opensuse.org/package/show/security:tls/gnutls?expand=0&rev=37
2020-07-17 11:26:29 +00:00

53 lines
1.1 KiB
Diff

Index: gnutls-3.6.14/configure
===================================================================
--- gnutls-3.6.14.orig/configure 2020-06-09 11:01:15.306654318 +0200
+++ gnutls-3.6.14/configure 2020-06-09 12:40:08.262985909 +0200
@@ -66054,12 +66054,12 @@ LIBS="$LIBS $GMP_LIBS"
$as_echo_n "checking gmp soname... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-
+#include <gmp.h>
int
main ()
{
-
- ;
+ mpz_t n;
+ mpz_init(n);
return 0;
}
_ACEOF
@@ -66088,12 +66088,12 @@ LIBS="$LIBS $NETTLE_LIBS"
$as_echo_n "checking nettle soname... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-
+#include <nettle/sha2.h>
int
main ()
{
-
- ;
+ struct sha256_ctx ctx;
+ sha256_init (&ctx);
return 0;
}
_ACEOF
@@ -66122,12 +66122,12 @@ LIBS="$LIBS $HOGWEED_LIBS"
$as_echo_n "checking hogweed soname... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-
+#include <nettle/rsa.h>
int
main ()
{
-
- ;
+ struct rsa_private_key priv;
+ nettle_rsa_private_key_init(&priv);
return 0;
}
_ACEOF