HELP: Client-Server code for anonymous authentication NOT working

Nikos Mavrogiannopoulos n.mavrogiannopoulos at
Tue Feb 7 19:27:51 CET 2012

On 02/06/2012 06:19 AM, Patrick Pelletier wrote:

> This sounds like the same problem I ran into recently.  I saw the exact
> same behavior when I tried compiling the current version of the example
> programs against the GnuTLS libraries that came with my operating
> system.  (GnuTLS 2.8.5 on Ubuntu 10.04.)

> I'm assuming my issue (and therefore yours) is that I was running

> example code that was meant for GnuTLS 3.x against an installed library
> that was GnuTLS 2.x.  (And, presumably the change in major version
> indicates an incompatibility, although unfortunately in this case it's a
> rather subtle one.)

You are right. The example in the website enables elliptic curve
anonymous Diffie-Hellman which doesn't exist in gnutls 2. The error is
subtle because the examples do not include error checking and thus do
not catch the error in gnutls_priority_set_direct().

If you fix the priority string the same example should work as is.


More information about the Gnutls-help mailing list