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

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