X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/b10c87b38c2345d15d30da5c18c823355ac506a9..32281b98f0a9e86de91d7ed56fb62a49edffcd8d:/test/scripts/5890-Resume-GnuTLS/5890 diff --git a/test/scripts/5890-Resume-GnuTLS/5890 b/test/scripts/5890-Resume-GnuTLS/5890 index 9db5403b9..3395218fa 100644 --- a/test/scripts/5890-Resume-GnuTLS/5890 +++ b/test/scripts/5890-Resume-GnuTLS/5890 @@ -6,12 +6,12 @@ gnutls # SSLKEYLOGFILE=/home/jgh/git/exim/test/foo sudo exim -DSERVER=server -bd -oX PORT_D # ### TLS1.2 -exim -DSERVER=server -DOPTION=NORMAL:!VERS-TLS1.3 -bd -oX PORT_D +exim -DSERVER=server -DOPTION=NORMAL:!VERS-TLS1.3 -bd -oX PORT_D:PORT_D2 **** exim -DVALUE=resume -odf getticket@test.ex Test message. Contains FF: ÿ **** -exim -DVALUE=resume -odf resume@test.ex abcd@test.ex xyz@test.ex +exim -DVALUE=resume -odf resume@test.ex hostnotresume@test.ex xyz@test.ex Test message to two different hosts, one does not support resume **** # allow time for ticket to hit renewal time @@ -29,18 +29,32 @@ Test message. exim -odf notreq@test.ex Test message, not requesting resumption. **** +sudo rm -f DIR/spool/db/tls +exim -odf -DVALUE=resume noverify_getticket@test.ex +Dest on this means the server cert will not verify (but try_verify will permit it) +**** +exim -odf -DVALUE=resume noverify_resume@test.ex +Dest on this means the server cert will not verify (but try_verify will permit it) +**** +# Test TLS-on-connect +exim -DVALUE=resume -odf resume@test.ex +**** +exim -DVALUE=resume -DSELECTOR=smtps -odf getticket@test.ex +**** +exim -DVALUE=resume -DSELECTOR=smtps -odf resume@test.ex +**** killdaemon sleep 1 -sudo rm DIR/spool/db/tls +sudo rm -f DIR/spool/db/tls # # ### TLS1.3 -exim -DSERVER=server -DOPTION=NORMAL -bd -oX PORT_D +exim -DSERVER=server -DOPTION=NORMAL -bd -oX PORT_D:PORT_D2 **** exim -DVALUE=resume -odf getticket@test.ex Test message. Contains FF: ÿ **** -exim -DVALUE=resume -odf resume@test.ex abcd@test.ex xyz@test.ex +exim -DVALUE=resume -odf resume@test.ex hostnotresume@test.ex xyz@test.ex Test message to two different hosts, one does not support resume **** # allow time for ticket to hit renewal time @@ -58,5 +72,24 @@ Test message. exim -odf notreq@test.ex Test message, not requesting resumption. **** +# +# Test the host_name_extract transport option. Due to the change the second +# message's connection should not offer a session. The third should (on the 2nd), +# as should the fourth (on the 1st). +sudo rm -f DIR/spool/db/tls* +exim -DVALUE=resume -odf getticket@test.ex +**** +exim -DVALUE=resume -DHELO_MSG=differenthost -odf noresume@test.ex +**** +exim -DVALUE=resume -DHELO_MSG=differenthost -odf resume@test.ex +**** +exim -DVALUE=resume -odf resume@test.ex +**** +# Test TLS-on-connect +exim -DVALUE=resume -DSELECTOR=smtps -odf getticket@test.ex +**** +exim -DVALUE=resume -DSELECTOR=smtps -odf resume@test.ex +**** +# killdaemon no_msglog_check