[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:32:16 CEST 2025




Alexander Sosedkin commented on a discussion on lib/pkcs11.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/2014#note_2736065711

 > +		_gnutls_debug_log(
 > +			"p11: Module %s is initialized in a thread-safe mode\n",
 > +			name);
 > +	} else {
 > +		_gnutls_debug_log(
 > +			"p11: Module %s is initialized NOT in a thread-safe mode\n",
 > +			name);
 > +	}
 > +	free(name);
 > +
 > +	memset(provider, 0, sizeof(*provider));
 > +	provider->module = module;
 > +	args.reserved = args.reserved ? strdup((const char *)args.reserved) :
 > +					NULL;
 > +	provider->init_args = args;
 > +	if (p11_kit_module_get_flags(module) & P11_KIT_MODULE_TRUSTED ||

I was worrying about `p11_kit_module_get_flags`, and I agree on `strdup`.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/2014#note_2736065711
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/9f8c3b8f/attachment.html>


More information about the Gnutls-devel mailing list