help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnutls_rsa_params_export_pkcs1 not thread safe


From: Sam Varshavchik
Subject: Re: gnutls_rsa_params_export_pkcs1 not thread safe
Date: Sat, 23 Jul 2011 11:27:27 -0400

Nikos Mavrogiannopoulos writes:

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.

I know -- this is some middleware that pregenerates temporary RSA keys, in case they are actually needed.

Attachment: pgpBI2Q1r4N4_.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]