[gnutls-help] GNUTLS_E_PREMATURE_TERMINATION error

Nikos Mavrogiannopoulos nmav at gnutls.org
Thu May 1 19:44:03 CEST 2014


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





More information about the Gnutls-help mailing list