gnutls-devel
[Top][All Lists]
Advanced

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

Re: gnutls_handshake crash on multithreading


From: Nikos Mavrogiannopoulos
Subject: Re: gnutls_handshake crash on multithreading
Date: Thu, 18 Feb 2010 08:50:39 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090817)

Vasiliy Ivanov wrote:
> No, it's my own structure(see below).
> It works at program start, but no methods are called at gnutls_handshake 
> processing.

Actually what is the return value of gcry_control when setting them? Are
you sure that these functions are not called?

I see here that you do:
>               gcry_check_version (GCRYPT_VERSION);
>               gcry_control( GCRYCTL_SET_THREAD_CBS, &gcry_threads_boost );
>               gcry_control (GCRYCTL_SUSPEND_SECMEM_WARN);
>               gcry_control (GCRYCTL_INIT_SECMEM, 16384, 0);
>               gcry_control (GCRYCTL_RESUME_SECMEM_WARN);
>               gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
>               gcry_control (GCRYCTL_INITIALIZATION_FINISHED_P); 
>               
>               gnutls_global_init();

and have no error checking whatsoever. Check gnutls_global_init() on how
the initialization of libgcrypt is done. Otherwise you don't even know
if these functions have any effect.



regards,
Nikos




reply via email to

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