summaryrefslogtreecommitdiffstats
path: root/test/ssltestlib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-06-20 14:26:00 +0100
committerMatt Caswell <matt@openssl.org>2017-06-21 14:45:36 +0100
commitca8c71ba3586fd0fcf6c011cbf39f5076d18c126 (patch)
tree313e320ea2512cc497092cb808e6e222c8dfa3da /test/ssltestlib.c
parent011d768aba675ed3efa4b8484eb6a14d78c27f12 (diff)
Add some tests for the new TLSv1.3 PSK code
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3670)
Diffstat (limited to 'test/ssltestlib.c')
-rw-r--r--test/ssltestlib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ssltestlib.c b/test/ssltestlib.c
index 4ee0bae9b9..64acea3f7d 100644
--- a/test/ssltestlib.c
+++ b/test/ssltestlib.c
@@ -661,3 +661,11 @@ int create_ssl_connection(SSL *serverssl, SSL *clientssl, int want)
return 1;
}
+
+void shutdown_ssl_connection(SSL *serverssl, SSL *clientssl)
+{
+ SSL_shutdown(clientssl);
+ SSL_shutdown(serverssl);
+ SSL_free(serverssl);
+ SSL_free(clientssl);
+}