[gnutls-devel] GnuTLS | pkcs11: try to initialize modules in thread-safe mode (!2014)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Mon Sep 8 13:27:33 CEST 2025
Daiki Ueno commented on a discussion on lib/pkcs11.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2014#note_2736053239
> if (ret < 0) {
> gnutls_assert();
> - _gnutls_debug_log("Cannot load PKCS #11 module: %s\n",
> + char *name = p11_kit_module_get_name(modules[i]);
> + _gnutls_debug_log(
> + "Cannot initialize PKCS #11 module: %s\n",
> + name);
> + free(name);
> + return ret;
> + }
> +
> + ret = pkcs11_provider_add(&provider);
> + if (ret < 0) {
> + gnutls_assert();
> + pkcs11_provider_deinit(&provider);
> + char *name = p11_kit_module_get_name(provider.module);
Good catch, changed the order.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2014#note_2736053239
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250908/b5895dd4/attachment.html>
More information about the Gnutls-devel
mailing list