gnutls-cli return codes [was: Re: confirmation that debian #480041 is a gnutls problem, and steps to reproduce]

Nikos Mavrogiannopoulos nmav at
Fri Nov 21 20:46:51 CET 2008

Daniel Kahn Gillmor wrote:
> On Fri 2008-11-21 02:24:02 -0500, Nikos Mavrogiannopoulos wrote:
>> Daniel Kahn Gillmor wrote:
>>> *** Non fatal error: Rehandshake was requested by the peer.
>>> *** Fatal error: A TLS fatal alert has been received.
>>> *** Received alert [10]: Unexpected message
>>> *** Server has terminated the connection abnormally.
>>> ---------------------------------
>> Hello, this does not seem to be a gnutls error. The server merely
>> asks for renegotiation, gnutls-cli ignores it (legal behavior) and
>> server does not like it thus sends a fatal alert.
> It looks to me like gnutls-cli has a return code of 0 in this
> situation.  Wouldn't it make more sense to exit with a non-zero return
> code when the server has terminated the connection abnormally?

Indeed, I've modified it to do so.


More information about the Gnutls-devel mailing list