[gnutls-help] error -24 GNUTLS_E_DECRYPTION_FAILED with two possible causes

michelbriand at free.fr michelbriand at free.fr
Mon Jan 26 15:57:00 CET 2015


> On Mon, Jan 26, 2015 at 3:18 PM,  <michelbriand at free.fr> wrote:
> >> Could you explain this scenario more? What do you mean by fork to
> >> proxy messages? Do you work the gnutls session, and send using the
> >> same session from two processes?
> >>
> >> regards,
> >> Nikos
> > The session init, connect and handshake are done in the parent
> > process.
> > A first exchange of messages (send/recv) takes place and works
> > well.
> > Then both ends fork to continue their exchanges.
> > Child process has duplicated sockets and memory (so session should
> > be ok ?).
> 
> Based on the error you see, I'd bet that you either receive or send
> by
> the parent when the child already exists.
> 
> regards,
> Nikos

Yes. Indeed.

The parent process send a last message on the socket before it is given to the child.

Is it the cause of the error ?

In that case, what could I do to prevent it ?
For example in the child I could use a gnutls "reset" function ?

Is 
Michel



More information about the Gnutls-help mailing list