[gnutls-devel] Problem with double initialization of pkcs11

Alexey Milov elevener at mail.ru
Tue Jun 2 10:26:09 CEST 2015


> On Mon, 2015-06-01 at 12:27 +0300, Alex wrote:
>> Hello
>> 
>> I believe that string
>>   providers_initialized = 1;
>> should  be  moved  from function _gnutls_pkcs11_check_init to function
>> gnutls_pkcs11_init.
>> 
>> Right now there is a problem (at least on Windows/MinGW) that if you
>> call gnutls_pkcs11_init yourself any pcks11 operation that calls
>> _gnutls_pkcs11_check_init - it calls gnutls_pkcs11_init for the second
>> time.

> Hi,
>  Would that patch address the issue you see?
> https://gitlab.com/gnutls/gnutls/commit/b0e533e8dc8eb852f0cbcfa7de39cdaa45233e68

> regards,
> Nikos
Yes, at least for my usecases.

Thanks,
  Alex




More information about the Gnutls-devel mailing list