diff options
author | Matt Caswell <matt@openssl.org> | 2017-06-20 14:26:00 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-06-21 14:45:36 +0100 |
commit | ca8c71ba3586fd0fcf6c011cbf39f5076d18c126 (patch) | |
tree | 313e320ea2512cc497092cb808e6e222c8dfa3da /test/ssltestlib.c | |
parent | 011d768aba675ed3efa4b8484eb6a14d78c27f12 (diff) | |
download | openssl-ca8c71ba3586fd0fcf6c011cbf39f5076d18c126.zip openssl-ca8c71ba3586fd0fcf6c011cbf39f5076d18c126.tar.gz openssl-ca8c71ba3586fd0fcf6c011cbf39f5076d18c126.tar.bz2 |
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.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ssltestlib.c b/test/ssltestlib.c index 4ee0bae..64acea3 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); +} |