50fbb7aeb661c8512289d6f224f432778b5a15b9
[exim.git] / test / scripts / 1190-TLS-ALPN / 1190
1 # TLS: ALPN
2 gnutls
3 exim -DSERVER=server -bd -oX PORT_D
4 ****
5 #
6 # Basic: is good ALPN set on tpt acceptable to server
7 exim -DCONTROL=smtp -odf a@test.ex
8 Test message.
9 ****
10 #
11 # Bad ALPN rejected
12 exim -DCONTROL=http -odf b@test.ex
13 ****
14 sudo rm -f DIR/spool/db/retry* DIR/spool/input/*-D DIR/spool/input/*-H
15 #
16 # Multiple ALPN rejected
17 exim -DCONTROL=smtp:smtp -odf c@test.ex
18 ****
19 sudo rm -f DIR/spool/db/retry* DIR/spool/input/*-D DIR/spool/input/*-H
20 #
21 # Empty client option is ok
22 exim -DCONTROL="" -odf d@test.ex
23 ****
24 # Content-free client option is ok
25 exim -DCONTROL=" " -odf e@test.ex
26 ****
27 killdaemon
28 #
29 # Server can be told to ignore (bad) ALPN from client
30 exim -DSERVER=server -DSTRICT="" -bd -oX PORT_D
31 ****
32 exim -DCONTROL=http -odf f@test.ex
33 ****
34 killdaemon
35 #
36 # Server can be told custom names list
37 exim -DSERVER=server -DSTRICT='${if eq {$sender_host_address}{HOSTIPV4} {smtp:weird} {smtp}}' -bd -oX PORT_D
38 ****
39 exim -DCONTROL=weird -odf g@test.ex
40 ****
41 killdaemon
42 #
43 #
44 no_msglog_check
45 no_stdout_check
46 millisleep 500