[gnutls-dev] Gnutls4Win: gnutls_global_init takes > 10 seconds

Tim Kosse tim.kosse at filezilla-project.org
Thu Nov 2 13:26:26 CET 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On my system (Windows XP SP2), calling gnutls_global_init takes over 10
seconds.

While analyzing this problem, I found out that it is caused by
libgcrypt. It's random number generator is extremely slow under Windows.

While searching for a solution, I found a patch from J. Salvatore Testa
on the this page: http://www.securitypunk.com/libgcrypt/

The patch enables libgcrypt to use Windows' own Crypto API. Replacing
the libgcrypt-11.dll from GnuTLS4Win with the one from that page solved
the problem for me, making gnutls_global_init almost instant.

Would it be possible to apply this patch to the next Gnutls4Win version?
Without, Gnutls4Win is almost unusable for me.

I'll also contact the libgcrypt developers to get this patch into libgcrypt.

Regards,
Tim Kosse
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFSePy8N9+lcqiUkURArcWAKDS485DoBrW5tPTWNBQE3pZEFxHxACgsXl7
Im7dWXPouqo/RxWgIjhpNzw=
=rz2b
-----END PGP SIGNATURE-----



More information about the Gnutls-dev mailing list