From 6fdf76d0eae42ce4507fe317f095572100c5d6b8 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 13 Mar 2023 00:43:01 +0000 Subject: SNI for ${readsocket } --- test/confs/1149 | 2 ++ test/log/1149 | 1 + test/scripts/1100-Basic-TLS/1149 | 1 + test/stdout/1149 | 1 + 4 files changed, 5 insertions(+) (limited to 'test') diff --git a/test/confs/1149 b/test/confs/1149 index 737753109..dfe5b33cb 100644 --- a/test/confs/1149 +++ b/test/confs/1149 @@ -13,4 +13,6 @@ tls_advertise_hosts = * tls_certificate = DIR/aux-fixed/cert1 tls_privatekey = DIR/aux-fixed/cert1 +acl_smtp_helo = accept logwrite = HELO <$sender_helo_name> SNI <$tls_in_sni> + # End diff --git a/test/log/1149 b/test/log/1149 index bc6ac7f77..efcef1b23 100644 --- a/test/log/1149 +++ b/test/log/1149 @@ -1,3 +1,4 @@ ******** SERVER ******** 1999-03-02 09:44:33 exim x.yz daemon started: pid=p1234, no queue runs, listening for SMTPS on port PORT_D +1999-03-02 09:44:33 HELO SNI diff --git a/test/scripts/1100-Basic-TLS/1149 b/test/scripts/1100-Basic-TLS/1149 index 501a9c9da..29702b049 100644 --- a/test/scripts/1100-Basic-TLS/1149 +++ b/test/scripts/1100-Basic-TLS/1149 @@ -8,6 +8,7 @@ exim -DSERVER=server -tls-on-connect -bd -oX PORT_D millisleep 500 exim -be 1 >>${readsocket{inet:thisloop:PORT_D}{QUIT\n}{2s:tls=yes}}<< +2 >>${readsocket{inet:thisloop:PORT_D}{EHLO tester\n}{1s:tls=yes:sni=fubar}}<< **** millisleep 500 # diff --git a/test/stdout/1149 b/test/stdout/1149 index a3eab5117..c67e31cfe 100644 --- a/test/stdout/1149 +++ b/test/stdout/1149 @@ -1,4 +1,5 @@ > 1 >>220 myhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000 221 myhost.test.ex closing connection << +> Failed: socket read timed out > -- cgit v1.2.1