[gnutls-devel] no way to detect gnutls_global_init() failure in 3.3

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Apr 28 10:17:18 CEST 2014


On Thu, Apr 24, 2014 at 10:01 PM, Dan Winship <danw at gnome.org> wrote:
> If gnutls_global_init() has been called before, it always returns 0,
> even if it failed the first time. Since it now gets called from a
> constructor, this means it will always return 0 when called from
> application code, even if it failed when called from the constructor.
> Probably it should save the original return value for future calls?

Thanks, that would be useful. I've now modified it to cache the
initial error code.

> (qv https://bugzilla.redhat.com/show_bug.cgi?id=1091053)

That may have to do with an issue that was fixed in 3.3.1. I'll follow up there.

regards,
Nikos



More information about the Gnutls-devel mailing list