d74caca5281476b525f176bf4fac4ccd4762a785
[exim.git] / test / scripts / 1100-Basic-TLS / 1115
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 exim -Mrm $msg1
15 ****
16 sudo rm -f DIR/spool/db/retry
17 #
18 # Multiple ALPN rejected
19 exim -DCONTROL=smtp:smtp -odf c@test.ex
20 ****
21 exim -Mrm $msg1
22 ****
23 sudo rm -f DIR/spool/db/retry
24 #
25 # Empty client option is ok
26 exim -DCONTROL="" -odf d@test.ex
27 ****
28 # Content-free client option is ok
29 exim -DCONTROL=" " -odf e@test.ex
30 ****
31 killdaemon
32 #
33 # Server can be told to ignore (bad) ALPN from client
34 exim -DSERVER=server -DSTRICT="" -bd -oX PORT_D
35 ****
36 exim -DCONTROL=http -odf f@test.ex
37 ****
38 killdaemon
39 #
40 # Server can be told custom names list
41 exim -DSERVER=server -DSTRICT='${if eq {$sender_host_address}{HOSTIPV4} {smtp:weird} {smtp}}' -bd -oX PORT_D
42 ****
43 exim -DCONTROL=weird -odf g@test.ex
44 ****
45 killdaemon
46 #
47 #
48 no_msglog_check
49 no_stdout_check
50 millisleep 500