Unable to access contents of "gnutls_session_int" in client code
Nikos Mavrogiannopoulos
nmav at gnutls.org
Fri Mar 9 09:33:05 CET 2012
On 03/09/2012 04:09 AM, Mihir Kulkarni wrote:
> Hello,
> I am using the simple client with anonymous authentication code given on
> the gnutls page. In the code after the line:
> *gnutls_priority_set_direct (session, "PERFORMANCE:+ANON-ECDH:+ANON-DH",*
> * NULL);*
> when I try to access contents of session like
> "*session->internals.priorities.cipher.priority[0]"
> *or any other variable from the structure "priorities", it throws me a
> "dereferencing pointer to incomplete type error". I tried using these lines
> in X.509 authentication code for client too. But it gives me the same error.
> 1. Am I trying to access the contents at the wrong location?
This is what an API is about. You can only access the session using the
documented functions.
> 2. Is it that "session" is not filled with the values I'm trying to access?
It is the correct. If you need to access the session anyway you can only
do it by modifying the gnutls source code by adding a new function.
regards,
Nikos
More information about the Gnutls-help
mailing list