[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HELP: Client-Server code for anonymous authentication NOT working
From: |
Nikos Mavrogiannopoulos |
Subject: |
Re: HELP: Client-Server code for anonymous authentication NOT working |
Date: |
Tue, 07 Feb 2012 19:27:51 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 |
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.
regards,
Nikos