Test CBC mode padding.
authorDavid Benjamin <davidben@google.com>
Wed, 10 Aug 2016 04:45:51 +0000 (00:45 -0400)
committerMatt Caswell <matt@openssl.org>
Mon, 26 Sep 2016 22:14:19 +0000 (23:14 +0100)
commit384fd75ad822569a61fe43235df270b2948a8f7d
tree31d9af591d1a348ae4b11c8b45f12ac1e7787c1b
parent7cac0558008a1f46218191e6f26fa7f08256f582
Test CBC mode padding.

This is a regression test for
https://github.com/openssl/openssl/pull/1431. It tests a
maximally-padded record with each possible invalid offset.

This required fixing a bug in Message.pm where the client sending a
fatal alert followed by close_notify was still treated as success.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(cherry picked from commit 8523288e6d667f052bda092e01ab17986782fede)
test/recipes/70-test_sslcbcpadding.t [new file with mode: 0644]
util/TLSProxy/Message.pm
util/TLSProxy/Proxy.pm