summaryrefslogtreecommitdiff
path: root/src/regress/lib/libtls
diff options
context:
space:
mode:
authorjsing <>2017-05-07 03:22:15 +0000
committerjsing <>2017-05-07 03:22:15 +0000
commit7672f6c5c31131a6d06252328c3bbfd151f7cce3 (patch)
treebaf50ad369655e23828533cae13e1a9196a9bbf7 /src/regress/lib/libtls
parent29048f09f31c8ae2fd81a3d7888fea2d0539ec62 (diff)
downloadopenbsd-7672f6c5c31131a6d06252328c3bbfd151f7cce3.tar.gz
openbsd-7672f6c5c31131a6d06252328c3bbfd151f7cce3.tar.bz2
openbsd-7672f6c5c31131a6d06252328c3bbfd151f7cce3.zip
Also test calling tls_handshake() on a server connection context that has
already completed a TLS handshake.
Diffstat (limited to 'src/regress/lib/libtls')
-rw-r--r--src/regress/lib/libtls/tls/tlstest.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/regress/lib/libtls/tls/tlstest.c b/src/regress/lib/libtls/tls/tlstest.c
index 21b25701eb..020b098a88 100644
--- a/src/regress/lib/libtls/tls/tlstest.c
+++ b/src/regress/lib/libtls/tls/tlstest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlstest.c,v 1.7 2017/05/07 01:58:29 jsing Exp $ */ 1/* $OpenBSD: tlstest.c,v 1.8 2017/05/07 03:22:15 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -402,6 +402,12 @@ do_tls_ordering_tests(void)
402 goto done; 402 goto done;
403 } 403 }
404 404
405 if (tls_handshake(server_cctx) != -1) {
406 printf("FAIL: TLS handshake succeeded twice\n");
407 failure = 1;
408 goto done;
409 }
410
405 if (do_client_server_close("ordering", client, server_cctx) != 0) { 411 if (do_client_server_close("ordering", client, server_cctx) != 0) {
406 failure = 1; 412 failure = 1;
407 goto done; 413 goto done;