[gnutls-devel] Problem with double initialization of pkcs11

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Jun 1 21:58:12 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





More information about the Gnutls-devel mailing list