From 58eb016e585187a87ade7602b2aecb2208605320 Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Fri, 13 Apr 2007 15:13:47 +0000 Subject: Check for lost connection or unexpected input at end of message. --- test/scripts/2000-GnuTLS/2029 | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 test/scripts/2000-GnuTLS/2029 (limited to 'test/scripts/2000-GnuTLS') diff --git a/test/scripts/2000-GnuTLS/2029 b/test/scripts/2000-GnuTLS/2029 new file mode 100644 index 000000000..e371e68d7 --- /dev/null +++ b/test/scripts/2000-GnuTLS/2029 @@ -0,0 +1,57 @@ +# TLS server: SMTP still alive check before final response +gnutls +# +exim -DSERVER=server -bd -oX PORT_D +**** +# The pause (+++ 1) at the end of this is so that we don't close the input +# until some time after sending the dot. +# +client-gnutls 127.0.0.1 PORT_D +??? 220 +ehlo abcd +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +starttls +??? 220 +mail from: +??? 250 +rcpt to: +??? 250 +data +??? 354 +This is a test message. +. ++++ 1 +**** +sleep 1 +killdaemon +# +# Also check for next input sent too soon +# +exim -DSERVER=server -bd -oX PORT_D +**** +client-gnutls 127.0.0.1 PORT_D +??? 220 +ehlo abcd +??? 250- +??? 250- +??? 250- +??? 250- +??? 250 +starttls +??? 220 +mail from: +??? 250 +rcpt to: +??? 250 +data +??? 354 +This is a test message. +.\r\nrset ++++ 1 +**** +sleep 1 +killdaemon -- cgit v1.2.3