[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnutls-dev
Subject:    Re: gnutls-cli return codes [was: Re: confirmation that debian
From:       Nikos Mavrogiannopoulos <nmav () gnutls ! org>
Date:       2008-11-21 19:46:51
Message-ID: 4927102B.8090709 () gnutls ! org
[Download RAW message or body]

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.

regards,
Nikos


_______________________________________________
Gnutls-devel mailing list
Gnutls-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/gnutls-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic