p / pycurl-archived

pycurl git import (temporary)
GNU Lesser General Public License v2.1
2 stars 6 forks source link

Only initialize gcrypt if we are using an older gnutls that needs this. #43

Closed p closed 11 years ago

p commented 11 years ago

This is necessary to support newer gnutls linked to libnettle instead of libgcrypt.

If curl is using a recent version of gnutls we do not need to initialize libgcrypt threading: gnutls does that for us. And because recent versions of gnutls may be using nettle instead of gcrypt it is important that we don't: those functions are not necessarily defined (and linking to libgcrypt explicitly to get them is stupid, as they're not used). The modification is based on instructions from the gnutls NEWS file.

http://sourceforge.net/p/pycurl/patches/15/