[gnutls-help] GNUTLS_E_PREMATURE_TERMINATION error

Polina Abramov polinaa at image-vault.com
Thu May 1 20:20:40 CEST 2014


Thanks!



I ran wireshark and it looks like at some point my client issues Encrypted Alert 21. Is it something I should be worried about?

Based on my check this alert means that the decryption has failed and that could be a reason for server to terminate the connection. Is my understanding correct?

The question is why would the decryption fail after it had already received and successfully decrypted previous data. Any ideas?



P.A.



-----Original Message-----
From: Nikos Mavrogiannopoulos [mailto:n.mavrogiannopoulos at gmail.com] On Behalf Of Nikos Mavrogiannopoulos
Sent: Thursday, May 01, 2014 1:44 PM
To: Polina Abramov
Cc: gnutls-help at lists.gnutls.org
Subject: Re: [gnutls-help] GNUTLS_E_PREMATURE_TERMINATION error



On Thu, 2014-05-01 at 17:10 +0000, Polina Abramov wrote:

> Hi All,

> I need help with GNUTLS_E_PREMATURE_TERMINATION error code that is

> returned by gnutls_record_recv() function.

> I have a simple smtp client that all it does is sending emails.  When

> I use gmail or hotmail smtp servers I keep getting

> GNUTLS_E_PREMATURE_TERMINATION and I can’t figure out what causes it.

> I don’t get this error with yahoo smtp server.



Hello,

The peer has terminated the TLS session using a TCP RST (i.e., called close()). Since gnutls cannot distinguish that termination from an attacker terminating the session it warns you with this error code.



regards,

Nikos




-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20140501/8b3e064b/attachment.html>


More information about the Gnutls-help mailing list