[gnutls-dev] living without global variables
Nikos Mavrogiannopoulos
nmav at gnutls.org
Wed Dec 21 22:23:53 CET 2005
On Wednesday 21 December 2005 19:05, Bryan Henderson wrote:
> It would be nice for GnuTLS not to use program-global variables.
> That way, it could be used in a modular program -- i.e. two different
> parts of a program that don't know about each other could use GnuTLS
> under the covers without interfering with each other. I'm especially
> concerned about independently distributed libraries that use Gnu TLS.
> GnuTLS contains two global variables of interest: the handles of the
> two ASN1 trees: _gnutls_pkix1_asn and _gnutls_gnutls_asn. (I'm not
> concerned about debugging features or alternative memory allocators).
These variables are constant during the lifetime of the application.
What would such a change offer as an advantage?
--
Nikos Mavrogiannopoulos
More information about the Gnutls-devel
mailing list