[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
       
    Wed Sep 10 13:45:53 CEST 2025
    
    
  
Alexander Sosedkin started a new discussion on lib/pkcs11.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2014#note_2741924313
 > +			_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();
 > +			char *name = p11_kit_module_get_name(provider.module);
 > +			_gnutls_debug_log("Cannot add PKCS #11 module: %s\n",
 >  					  name);
 > +			free(name);
 > +			pkcs11_provider_deinit(&provider);
 > +			return ret;
previously the code has only logged on errors, now it aborts on the first error, which seems like a significant change
-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2014#note_2741924313
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/20250910/7cadbcf0/attachment.html>
    
    
More information about the Gnutls-devel
mailing list