Problem with libgcrypt maybe because of libgnutls

Paul Salters psalters at gmail.com
Wed May 16 11:33:15 CEST 2012


On 16 May 2012 11:18, Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote:
> On Tue, May 15, 2012 at 9:54 AM, Paul Salters <psalters at gmail.com> wrote:
>> Dear mailinglist members,
>>
>> I have an problem with my application. My application is using the
>> xmlrpc-c library (http://xmlrpc-c.sourceforge.net/) that library is
>> using the curl library which is using the gnutls library which is
>> using libgcrypt. (So far so good?)
>
> Hello,
>  Libgcrypt requires mutex locks to be setup by the end application. I
> don't know if curl does it already for you, but if it doesn't you
> should set them up.
> If you use gnutls 2.12.0 or later you need not to perform any of these
> actions because the system mutexes are used by default.
>
> regards,
> Nikos

Thank you for answer!

I have add the following lines of code to my application.

GCRY_THREAD_OPTION_PTHREAD_IMPL;
gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
gnutls_global_init();

But the error still remains.

Regards,

Paul Salters




More information about the Gnutls-help mailing list