Bug#368297: How to check if the application forgot to initialize Libgcrypt?
8it1g1 at nottheoilrig.com
Fri May 3 00:36:49 UTC 2013
Whether the OpenLDAP code that depends on GnuTLS is in a separate
process from the application or not, it might still need to set
Libgcrypt thread support callbacks when it initializes GnuTLS.
Werner Koch makes the point that ideally the application (nss-pam-ldapd
or whatever) would initialize Libgcrypt. Meanwhile everyone seems to
agree that a library which introduces an indirect dependency on
Libgcrypt (i.e. GnuTLS) should be failsafe and initialize Libgcrypt
itself if the application forgot to do that.
Then how should it check if the application forgot to initialize
Libgcrypt? Testing GCRYCTL_ANY_INITIALIZATION_P is consistent with
More information about the Pkg-gnutls-maint