handshake issue with gnutls 3.0.3

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Nov 2 09:30:12 CET 2011


On 11/01/2011 07:51 PM, frank.krout at eurorscg.com wrote:
> Anyone run into this. I'm new to GNUTLS and having an issue in 
> multi-threaded app.
> 
> Via application mutex's, I've serialized access to GNUTLS_HANDSHAKE in 
> order just to get a successful handshake... and am getting this:
[...]
> The gnutls-cli app runs fine, built in same environment and does not use 
> gnutls_global_set_mutex.
> Since it does work,  I've modeled my code largely after ( src/cli.c ), not 
> using set_mutex either.
> I realize it's a single thread, that is why I serialized the handshake in 
> my app.
> So the random function works fine for gnutls-cli, I don't get what's going 
> on.

I don't quite understand your issue. Do the implicit locks (pthread)
work for you, but when you use gnutls_global_set_mutex() you get a crash?

regards,
Nikos




More information about the Gnutls-help mailing list