_gcry_ath_mutex_lock in GnuTLS
Rich Fought
whatever at fsrz.net
Fri Jan 20 23:20:30 CET 2006
Werner Koch wrote:
>
>> void gcry_init_helper(void) {
>> gcry_control(GCRYCTL_DISABLE_SECMEM_WARN);
>> gcry_control(GCRYCTL_INIT_SECMEM, 16384, 0);
>> gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
>>
>
> Swap the last two calls. Setting the threading model must be the very
> first operation. Calling DISABLE_SECMEN_WARN earlier is okay as it
> only sets a flag. Make sure that gcry_init_helper is called before
> the first thread accesses Libgcrypt.
>
Thanks, I *think* that did the trick. Time will tell ...
Regards,
Rich
More information about the Gcrypt-devel
mailing list