[gnutls-devel] gnutls_pkcs11_add_provider() duplicate modules detection

Jan Včelák jan.vcelak at nic.cz
Thu Jul 14 17:28:28 CEST 2016


Hey,

I just found out that gnutls_pkcs11_add_provider() doesn't detect
duplicate modules to be loaded however the code indicates that some
duplicate detection happens. As a result, when a module is loaded
multiple times, the gnutls_pkcs11_obj_list_import_url4() function
retrieves objects as many times as many times the module is loaded.

Internally, the module address returned by p11_kit_module_load() is
checked against a list of already present modules. It doesn't work. (It
seems to work with P11_KIT_MODULE_UNMANAGED though).

I'm not sure how to fix this correctly. Any ideas?

Cheers,

Jan



More information about the Gnutls-devel mailing list