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 21:20:14 +0000 (14:20 -0700)
commit3cd14e5e65011660ad8e3603cf871c8366b565fd
tree896dc180b7f324c39c06857c4e7629e36fff3a88
parent2e3ec2e1578977fca830a47fd7f521e290540e6d
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)
test/sslapitest.c