summaryrefslogtreecommitdiff
path: root/test/scripts/1190-TLS-ALPN
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-07-18 15:51:16 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-07-18 15:54:05 +0100
commitd083e3f2af9baf1910a69c1cc4a06a26be99d40c (patch)
tree1a533c9006f99f0ef1462a7494ff08de4ed3a7b7 /test/scripts/1190-TLS-ALPN
parentb634f8eaf52aae84c311d7e306f38f3dc07ff1b0 (diff)
ALPN: feature macro
Diffstat (limited to 'test/scripts/1190-TLS-ALPN')
-rw-r--r--test/scripts/1190-TLS-ALPN/119050
-rw-r--r--test/scripts/1190-TLS-ALPN/REQUIRES1
2 files changed, 51 insertions, 0 deletions
diff --git a/test/scripts/1190-TLS-ALPN/1190 b/test/scripts/1190-TLS-ALPN/1190
new file mode 100644
index 000000000..d74caca52
--- /dev/null
+++ b/test/scripts/1190-TLS-ALPN/1190
@@ -0,0 +1,50 @@
+# TLS: ALPN
+gnutls
+exim -DSERVER=server -bd -oX PORT_D
+****
+#
+# Basic: is good ALPN set on tpt acceptable to server
+exim -DCONTROL=smtp -odf a@test.ex
+Test message.
+****
+#
+# Bad ALPN rejected
+exim -DCONTROL=http -odf b@test.ex
+****
+exim -Mrm $msg1
+****
+sudo rm -f DIR/spool/db/retry
+#
+# Multiple ALPN rejected
+exim -DCONTROL=smtp:smtp -odf c@test.ex
+****
+exim -Mrm $msg1
+****
+sudo rm -f DIR/spool/db/retry
+#
+# Empty client option is ok
+exim -DCONTROL="" -odf d@test.ex
+****
+# Content-free client option is ok
+exim -DCONTROL=" " -odf e@test.ex
+****
+killdaemon
+#
+# Server can be told to ignore (bad) ALPN from client
+exim -DSERVER=server -DSTRICT="" -bd -oX PORT_D
+****
+exim -DCONTROL=http -odf f@test.ex
+****
+killdaemon
+#
+# Server can be told custom names list
+exim -DSERVER=server -DSTRICT='${if eq {$sender_host_address}{HOSTIPV4} {smtp:weird} {smtp}}' -bd -oX PORT_D
+****
+exim -DCONTROL=weird -odf g@test.ex
+****
+killdaemon
+#
+#
+no_msglog_check
+no_stdout_check
+millisleep 500
diff --git a/test/scripts/1190-TLS-ALPN/REQUIRES b/test/scripts/1190-TLS-ALPN/REQUIRES
new file mode 100644
index 000000000..44d5cc0cb
--- /dev/null
+++ b/test/scripts/1190-TLS-ALPN/REQUIRES
@@ -0,0 +1 @@
+feature _HAVE_TLS_ALPN