gnutls_rsa_params_export_pkcs1 not thread safe

Nikos Mavrogiannopoulos nmav at gnutls.org
Sat Jul 23 16:18:30 CEST 2011


On 07/02/2011 05:43 AM, Sam Varshavchik wrote:
> A long and painful debugging session seems to indicate that the root
> of my problems is that gnutls_rsa_params_export_pkcs1() is not thread
> safe. I was invoking this function with the same
> gnutls_rsa_params_t, concurrently from multiple threads.

Thanks, there was some optimization in gnutls_rsa_params_t that caused
this issue. The attached patch should fix your problem.

However do you really need the gnutls_rsa_params_t? They are only
used for the RSA-EXPORT ciphersuites that shouldn't be used normally.

regards,
Nikos
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: </pipermail/attachments/20110723/d0b1a91b/attachment.txt>


More information about the Gnutls-help mailing list