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:10:29 +0000 (23:10 +0100)
commit8523288e6d667f052bda092e01ab17986782fede
tree08f35fb07ef433d837a67d7ed0f2964d9acc22da
parentfa454945cf2855fed452ff9bdb1876096bc07beb
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>
test/recipes/70-test_sslcbcpadding.t [new file with mode: 0644]
util/TLSProxy/Message.pm
util/TLSProxy/Proxy.pm