Skip to content

Commit 8d22eac

Browse files
committed
Disable automatic initialization of GnuTLS
We have code here to ensure that GnuTLS does not get initialized just by scanning GIO modules, but it's being defeated because GnuTLS has since started initializing itself using a library constructor. To fix this we have to define the symbol _gnutls_global_init_skip using the macro GNUTLS_SKIP_GLOBAL_INIT.
1 parent 7e8a372 commit 8d22eac

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

glib-networking.map

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ global:
33
g_io_*_load;
44
g_io_*_unload;
55
g_io_*_query;
6+
_gnutls_global_init_skip;
67
local:
78
*;
89
};

tls/gnutls/gtlsbackend-gnutls.c

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ gtls_gnutls_init (gpointer data)
7373
return NULL;
7474
}
7575

76+
GNUTLS_SKIP_GLOBAL_INIT
77+
7678
static GOnce gnutls_inited = G_ONCE_INIT;
7779

7880
static void

0 commit comments

Comments
 (0)