Fix no-comp
authorMatt Caswell <matt@openssl.org>
Tue, 7 Mar 2017 09:58:27 +0000 (09:58 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 8 Mar 2017 11:03:37 +0000 (11:03 +0000)
commit4f7b76bf0f255c0a04eb3e47361a00b19f16120d
tree709bfd30bb385728c86c14ca4eb38ea4cf84d2bf
parent75e314f2d573d4f984ff6a371be7a4966bf5f4c5
Fix no-comp

The value of SSL3_RT_MAX_ENCRYPTED_LENGTH normally includes the compression
overhead (even if no compression is negotiated for a connection). Except in
a build where no-comp is used the value of SSL3_RT_MAX_ENCRYPTED_LENGTH does
not include the compression overhead.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2872)
ssl/record/ssl3_record.c
test/recordlentest.c