]> git.ipfire.org Git - thirdparty/openssl.git/commit
Refactor and Enhance Compression Field Testing
authorerbsland-dev <github@erbsland.dev>
Sun, 25 Aug 2024 10:08:36 +0000 (12:08 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 29 Aug 2024 17:16:38 +0000 (19:16 +0200)
commit80008d4a94b660f3df1608c771098f4942c906bd
treea12e3759419f995a3df2c6ea8e45ac1a2844e1cc
parentc026101be0c3c1a66b64d21d0e8c1ba39bcfd254
Refactor and Enhance Compression Field Testing

Fixes #7940: Enhances the existing test for compression methods in the ClientHello message, aligning with RFC 8446 specifications.

Refactored the test code to improve modularity and maintainability, making it easier to extend and modify in the future.

Added checks for the appropriate alerts, ensuring that `SSL_AD_ILLEGAL_PARAMETER` or `SSL_AD_DECODE_ERROR` are correctly triggered as per the RFC 8446 guidelines.

Expanded Test Coverage: Introduced additional test cases to cover scenarios involving:
- Lists of unknown compression methods
- Absence of any compression method
- Validation of a single null compression method, which should always succeed.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25255)
test/recipes/70-test_comp.t
util/perl/TLSProxy/Message.pm