[gnutls-devel] eliminating gnutls_global_init
Andy Lutomirski
luto at amacapital.net
Sat Nov 30 01:06:27 CET 2013
On Fri, Nov 29, 2013 at 4:01 PM, Nikos Mavrogiannopoulos
<nmav at gnutls.org> wrote:
> Hello,
> I'm considering moving parts of gnutls_global_init to a library
> constructor. That would mean that in ELF systems and systems that
> support constructors, it would be possible to use gnutls without calling
> gnutls_global_init().
In theory, a different library could create a thread in a constructor
or try to use GnuTLS from a constructor, causing problems. (This
might be unlikely.)
I think that automatically initializing this stuff on the first call
into GnuTLS would be ideal.
--Andy
More information about the Gnutls-devel
mailing list