gnutls-devel
[Top][All Lists]
Advanced

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

Re: `pkg-config gnutls --variable=crypto_lib`


From: Nikos Mavrogiannopoulos
Subject: Re: `pkg-config gnutls --variable=crypto_lib`
Date: Sun, 24 Oct 2010 14:44:02 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.14) Gecko/20101006 Thunderbird/3.0.9

On 10/24/2010 02:09 PM, Arfrever Frehtes Taifersar Arahesis wrote:
> The attached patch adds support for `pkg-config gnutls --variable=crypto_lib`
> so that users of GnuTLS can check crypto library used by GnuTLS.
> It might be useful for build systems of packages, which use GnuTLS.

Why you need to know the backend library? The only reason that might
require knowing that is when you do conditional compilation with older
gnutls versions that use libgcrypt and pthreads. In that case you might
want to follow  the instructions in the "NEWS" file. That is use:

#if GNUTLS_VERSION_NUMBER <= 0x020b00
        gcry_control(...)
#endif

to distinguish between the situations where you need to call libgcrypt
to setup the threads explicitly (later gnutls versions implicitly
initialize thread support whether with libgcrypt or nettle).

regards,
Nikos



reply via email to

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