Add test that changes ciphers on CCS
authorBenjamin Kaduk <bkaduk@akamai.com>
Fri, 6 Mar 2020 21:19:45 +0000 (13:19 -0800)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 13 Mar 2020 23:12:18 +0000 (16:12 -0700)
commit2f0dab7e59cc50c89b6d54962b81cf96c30fe725
treeefde94b3f5fc16e2a67e541bdcfbadd01db68385
parent44bad9cbf7daa5ff7dd201e0c61e684b2e2eb971
Add test that changes ciphers on CCS

The TLS (pre-1.3) ChangeCipherState message is usually used to indicate
the switch from the unencrypted to encrypted part of the handshake.
However, it can also be used in cases where there is an existing
session (such as during resumption handshakes) or when changing from
one cipher to a different one (such as during renegotiation when the
cipher list offered by the client has changed).  This test serves
to exercise such situations, allowing us to detect whether session
objects are being modified in cases when they must remain immutable
for thread-safety purposes.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10943)

(cherry picked from commit 3cd14e5e65011660ad8e3603cf871c8366b565fd)
test/sslapitest.c