Fix TLSProxy end of test detection
authorMatt Caswell <matt@openssl.org>
Thu, 13 Aug 2015 15:58:20 +0000 (16:58 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 26 Aug 2015 09:38:02 +0000 (10:38 +0100)
commit8af538e5c55f43f9ae996d3f2cae04222cda6762
tree61339ef13d7c8b317fbaa9fde0c8d10f9d6b238b
parentee4ffd6fccd169775ba74afb1dbfecff48ee413d
Fix TLSProxy end of test detection

Previously TLSProxy would detect a successful handshake once it saw the
server Finished message. This causes problems with abbreviated handshakes,
or if the client fails to process a message from the last server flight.

This change additionally sends some application data and finishes when the
client sends a CloseNotify.

Reviewed-by: Tim Hudson <tjh@openssl.org>
util/TLSProxy/Message.pm
util/TLSProxy/Proxy.pm