Add test for SSL_new_session_ticket()
authorBenjamin Kaduk <bkaduk@akamai.com>
Tue, 17 Mar 2020 17:08:11 +0000 (10:08 -0700)
committerBen Kaduk <kaduk@mit.edu>
Fri, 1 May 2020 22:19:23 +0000 (15:19 -0700)
commitf0049b86cc5d745af97c087e54abaeb00de40b6b
tree0d683c1da9454819cea5c1085616562bfa72350e
parent3bfacb5fd4679812a7b9ec61d296b1add64669c0
Add test for SSL_new_session_ticket()

Run a normal handshake and then request some extra tickets,
checking that the new_session_cb is called the expected number of
times.  Since the tickets are generated in the same way as other
tickets, there should not be a need to verify that these specific ones
can be used to resume.

Run the test with both zero and a non-zero number of tickets issued in the
initial handshake.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11416)
test/sslapitest.c