openssl/util/perl/TLSProxy
erbsland-dev 80008d4a94 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)
2024-08-29 19:16:38 +02:00
..
Alert.pm
Certificate.pm Copyright year updates 2024-04-09 13:43:26 +02:00
CertificateRequest.pm Copyright year updates 2024-04-09 13:43:26 +02:00
CertificateVerify.pm Copyright year updates 2024-04-09 13:43:26 +02:00
ClientHello.pm Copyright year updates 2024-04-09 13:43:26 +02:00
EncryptedExtensions.pm Copyright year updates 2024-04-09 13:43:26 +02:00
HelloVerifyRequest.pm Copyright year updates 2024-04-09 13:43:26 +02:00
Message.pm Refactor and Enhance Compression Field Testing 2024-08-29 19:16:38 +02:00
NewSessionTicket.pm Copyright year updates 2024-04-09 13:43:26 +02:00
NextProto.pm Add a test for an empty NextProto message 2024-06-27 10:30:52 +01:00
Proxy.pm Add a test for an empty NextProto message 2024-06-27 10:30:52 +01:00
Record.pm Copyright year updates 2024-04-09 13:43:26 +02:00
ServerHello.pm Copyright year updates 2024-04-09 13:43:26 +02:00
ServerKeyExchange.pm Copyright year updates 2024-04-09 13:43:26 +02:00