[Help-gnutls] Order of freing various structures

Nikos Mavrogiannopoulos nmav at gnutls.org
Mon Aug 1 21:05:12 CEST 2005


Einar Karttunen wrote:
> Hello

> I am writing a wrapper of GnuTLS in Haskell and the order of freing
> structures seems quite important. Is one allowed to first free
> credentials and then deinit a session they were associated with? Or
> must the credentials be valid when deinit is called on the session?

Hi,
Actually not since they are not used at that point.
However you cannot use a session after the credentials are freed.

regards,
Nikos






More information about the Gnutls-help mailing list