help-gnutls
[Top][All Lists]
Advanced

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

Re: Unable to access contents of "gnutls_session_int" in client code


From: Nikos Mavrogiannopoulos
Subject: Re: Unable to access contents of "gnutls_session_int" in client code
Date: Fri, 09 Mar 2012 09:33:05 +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 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



reply via email to

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