summaryrefslogtreecommitdiff
path: root/test/scripts/2000-GnuTLS/2038
blob: 227af8475d297438040fdf3115722d72dfee0646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# TLS: ALPN: mandatory
# Separated from the OpenSSL equivalent as we deliberately send a Fatal Alert, and that gets logged by the receiver
# OpenSSL does not provides the facility.
gnutls
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