diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-04-17 13:32:18 +0200 |
---|---|---|
committer | Daiki Ueno <dueno@redhat.com> | 2018-05-07 13:03:24 +0200 |
commit | 2e53b43de8180aea67a9e20f9b2ced4ac9eb2dbb (patch) | |
tree | ddf0cbf04aa425bb15268a54424b4cfe2d3ecd10 /tests/scripts/common.sh | |
parent | 220ed0691a493e8ced608a5d77b54c358afba6f0 (diff) | |
download | gnutls-tmp-session-resumption-tls13-openssl-interop.tar.gz |
tests: exercise TLS 1.3 session resumptiontmp-session-resumption-tls13-openssl-interop
This requires a few changes to the resume.c test: because
NewSessionTicket is a post-handshake message,
gnutls_session_get_data2() needs to be called after sending the first
application data. Also, when GNUTLS_E_AGAIN, gnutls_record_recv()
needs to retry.
Signed-off-by: Daiki Ueno <dueno@redhat.com>
Diffstat (limited to 'tests/scripts/common.sh')
-rw-r--r-- | tests/scripts/common.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/scripts/common.sh b/tests/scripts/common.sh index 4615770f6b..8662d93cf1 100644 --- a/tests/scripts/common.sh +++ b/tests/scripts/common.sh @@ -195,3 +195,14 @@ else LOCKFILE="lockfile global.lock" UNLOCKFILE="rm -f global.lock" fi + +create_testdir() { + local PREFIX=$1 + d=`mktemp -d -t ${PREFIX}.XXXXXX` + if test $? -ne 0; then + d=${TMPDIR}/${PREFIX}.$$ + mkdir "$d" || exit 1 + fi + trap "test -e \"$d\" && rm -rf \"$d\"" 1 15 2 + echo "$d" +} |