File gnutls-verify-library-HMAC.patch of Package gnutls

Index: gnutls-3.7.8/lib/fips.c
===================================================================
--- gnutls-3.7.8.orig/lib/fips.c
+++ gnutls-3.7.8/lib/fips.c
@@ -402,6 +402,8 @@ static int check_binary_integrity(void)
 	ret = check_lib_hmac(&file.gnutls, GNUTLS_LIBRARY_NAME, "gnutls_global_init");
 	if (ret < 0)
 		return ret;
+	/* Check only the binary integrity of the libgnutls library */
+#if 0
 	ret = check_lib_hmac(&file.nettle, NETTLE_LIBRARY_NAME, "nettle_aes_set_encrypt_key");
 	if (ret < 0)
 		return ret;
@@ -411,6 +413,7 @@ static int check_binary_integrity(void)
 	ret = check_lib_hmac(&file.gmp, GMP_LIBRARY_NAME, "__gmpz_init");
 	if (ret < 0)
 		return ret;
+#endif
 
 	return 0;
 }
openSUSE Build Service is sponsored by