#REGTEST_TYPE=devel

# This reg-test tests 8 scenarios without tickets, with various
# combinations of settings for allow-0rtt, with TLSv1.3. Each client will try
# to established a connection, then try to reconnect 10 times resuming, and
# check for which combination(s) 0-rtt is used and if they are expected.

varnishtest "Test if the SSL session/ticket reuse works correctly for TLSv1.3"
feature cmd "$HAPROXY_PROGRAM -cc 'feature(OPENSSL) && ssllib_name_startswith(OpenSSL) && openssl_version_atleast(1.1.1)'"

setenv VTC_SOCK_TYPE stream
setenv TLSV TLSv1.3
setenv NO_TLS_TICKETS no-tls-tickets
setenv SSL_CACHESIZE 20000
setenv ALPN http/1.1
include ${testdir}/../ssl/ssl-0rtt.vtci
