[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Initializing gcrypt in gnutls4win?
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: Initializing gcrypt in gnutls4win? |
Date: |
Fri, 23 Oct 2009 19:41:53 +0300 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Jason Pettiss wrote:
> Thanks to GnuTLS for Windows I was able to convert an existing application to
> use TLS in about 30 minutes. Yay for that. Everything works fine until I
> make two connections at the same time (from different threads), where gcrypt
> asserts on me, complaining of mutex state.
>
> Does GnuTLS for Windows perform the gcry_control(GCRYCTL_SET_THREAD_CBS, ...)
> operation for me, or is that still my application's responsibility? If I
> need to do that, anyone have any pointers on how to accomplish that?
I believe you have to set your own lock functions and call the
gcry_control.
regards,
Nikos