Blame SOURCES/gnutls-3.7.2-no-explicit-init.patch

cabbaa
From 36a92d984020df16296784a7ad613c9693469d23 Mon Sep 17 00:00:00 2001
cabbaa
From: rpm-build <rpm-build>
cabbaa
Date: Tue, 21 Dec 2021 16:28:09 +0100
cabbaa
Subject: [PATCH 1/2] Remove GNUTLS_NO_EXPLICIT_INIT compatibility
cabbaa
cabbaa
Signed-off-by: rpm-build <rpm-build>
cabbaa
---
cabbaa
 lib/global.c | 8 --------
cabbaa
 1 file changed, 8 deletions(-)
cabbaa
cabbaa
diff --git a/lib/global.c b/lib/global.c
cabbaa
index 3731418..1384045 100644
cabbaa
--- a/lib/global.c
cabbaa
+++ b/lib/global.c
cabbaa
@@ -500,14 +500,6 @@ static void _CONSTRUCTOR lib_init(void)
cabbaa
 			return;
cabbaa
 	}
cabbaa
 
cabbaa
-	e = secure_getenv("GNUTLS_NO_EXPLICIT_INIT");
cabbaa
-	if (e != NULL) {
cabbaa
-		_gnutls_debug_log("GNUTLS_NO_EXPLICIT_INIT is deprecated; use GNUTLS_NO_IMPLICIT_INIT\n");
cabbaa
-		ret = atoi(e);
cabbaa
-		if (ret == 1)
cabbaa
-			return;
cabbaa
-	}
cabbaa
-
cabbaa
 	ret = _gnutls_global_init(1);
cabbaa
 	if (ret < 0) {
cabbaa
 		fprintf(stderr, "Error in GnuTLS initialization: %s\n", gnutls_strerror(ret));
cabbaa
-- 
cabbaa
2.31.1
cabbaa