summaryrefslogtreecommitdiff
path: root/test/scripts/2190-OpenSSL-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/2190-OpenSSL-ALPN
parentb634f8eaf52aae84c311d7e306f38f3dc07ff1b0 (diff)
ALPN: feature macro
Diffstat (limited to 'test/scripts/2190-OpenSSL-ALPN')
-rw-r--r--test/scripts/2190-OpenSSL-ALPN/219035
-rw-r--r--test/scripts/2190-OpenSSL-ALPN/REQUIRES3
2 files changed, 38 insertions, 0 deletions
diff --git a/test/scripts/2190-OpenSSL-ALPN/2190 b/test/scripts/2190-OpenSSL-ALPN/2190
new file mode 100644
index 000000000..7dadb3051
--- /dev/null
+++ b/test/scripts/2190-OpenSSL-ALPN/2190
@@ -0,0 +1,35 @@
+# TLS: ALPN: mandatory
+#
+# Plain server
+exim -DSERVER=server -bd -oX PORT_D
+****
+# Client requires ALPN (success)
+exim -DCONTROL=smtp -DREQUIRE=y -odf client_require@test.ex
+****
+killdaemon
+#
+# Server can be told to ignore (bad) ALPN from client
+exim -DSERVER=server -DSTRICT="" -bd -oX PORT_D
+****
+# Client requires ALPN (fail)
+exim -DCONTROL=http -DREQUIRE=y -odf client_require_fail@test.ex
+****
+exim -Mrm $msg1
+****
+sudo rm -f DIR/spool/db/retry
+killdaemon
+#
+#
+# Server can be told ALPN mandatory
+exim -DSERVER=server -DREQUIRE=y -bd -oX PORT_D
+****
+# Client supplies ALPN, good
+exim -DCONTROL=smtp -odf server_require_good@test.ex
+****
+# Client does not supply ALPN, fails
+exim -odf server_require_bad@test.ex
+****
+killdaemon
+#
+no_msglog_check
+no_stdout_check
diff --git a/test/scripts/2190-OpenSSL-ALPN/REQUIRES b/test/scripts/2190-OpenSSL-ALPN/REQUIRES
new file mode 100644
index 000000000..d97fd9744
--- /dev/null
+++ b/test/scripts/2190-OpenSSL-ALPN/REQUIRES
@@ -0,0 +1,3 @@
+support OpenSSL
+running IPv4
+feature _HAVE_TLS_ALPN