diff options
author | jsing <> | 2017-05-07 01:58:29 +0000 |
---|---|---|
committer | jsing <> | 2017-05-07 01:58:29 +0000 |
commit | 5f8f9e28b0e1a4c703500552e678a4335bca5039 (patch) | |
tree | 84fd743040cd6d6fa70ad507244cc9e0119bed1c /src/regress/lib/libtls | |
parent | 63a6dc4ec471572e2d0c71bc373335a11d7fbe7d (diff) | |
download | openbsd-5f8f9e28b0e1a4c703500552e678a4335bca5039.tar.gz openbsd-5f8f9e28b0e1a4c703500552e678a4335bca5039.tar.bz2 openbsd-5f8f9e28b0e1a4c703500552e678a4335bca5039.zip |
Add a test that calls tls_handshake() on a connection that has already
completed a TLS handshake. This should return a failure, but currently
succeeds (hence the regress currently fails).
Diffstat (limited to 'src/regress/lib/libtls')
-rw-r--r-- | src/regress/lib/libtls/tls/tlstest.c | 8 |
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 1f75232dd9..21b25701eb 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.6 2017/05/07 01:56:24 jsing Exp $ */ | 1 | /* $OpenBSD: tlstest.c,v 1.7 2017/05/07 01:58:29 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -396,6 +396,12 @@ do_tls_ordering_tests(void) | |||
396 | goto done; | 396 | goto done; |
397 | } | 397 | } |
398 | 398 | ||
399 | if (tls_handshake(client) != -1) { | ||
400 | printf("FAIL: TLS handshake succeeded twice\n"); | ||
401 | failure = 1; | ||
402 | goto done; | ||
403 | } | ||
404 | |||
399 | if (do_client_server_close("ordering", client, server_cctx) != 0) { | 405 | if (do_client_server_close("ordering", client, server_cctx) != 0) { |
400 | failure = 1; | 406 | failure = 1; |
401 | goto done; | 407 | goto done; |