]> git.ipfire.org Git - thirdparty/openssl.git/commit
Extend the testing of resetting/clearing an SSL connection
authorMatt Caswell <matt@openssl.org>
Tue, 16 Jan 2024 13:53:30 +0000 (13:53 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 31 Jan 2024 10:10:55 +0000 (10:10 +0000)
commit5de8c49d6c019ad93149871989b755b5cc7b821c
tree6256b2110206f3df327d4981a45ea3adda5f0991
parentf7f2b665cf91650deb28beb1145ea3eca7df67aa
Extend the testing of resetting/clearing an SSL connection

SSL_clear() explicitly clears an SSL object to enable it to be reused.
You can have a similar effect by calling SSL_set_accept_state() or
SSL_set_connect_state(). We extend the testing of SSL_clear() to use these
other methods. We also ensure we test the case where we have unread
bufferred data that needs to be cleared.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23256)
test/sslapitest.c