[gnutls-dev] Gnutls4Win: gnutls_global_init takes > 10 seconds
tim.kosse at filezilla-project.org
Thu Nov 2 13:26:26 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
On my system (Windows XP SP2), calling gnutls_global_init takes over 10
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Gnutls-dev