diff options
Diffstat (limited to 'test/ssl_test.c')
-rw-r--r-- | test/ssl_test.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ssl_test.c b/test/ssl_test.c index 752de6396b..f5dfa97090 100644 --- a/test/ssl_test.c +++ b/test/ssl_test.c @@ -146,6 +146,16 @@ static int check_session_ticket(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx return 1; } +static int check_compression(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) +{ + if (result->compression != test_ctx->compression_expected) { + fprintf(stderr, "Client CompressionExpected mismatch, expected %s, got %s\n.", + ssl_compression_name(test_ctx->compression_expected), + ssl_compression_name(result->compression)); + return 0; + } + return 1; +} #ifndef OPENSSL_NO_NEXTPROTONEG static int check_npn(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) { @@ -259,6 +269,7 @@ static int check_test(HANDSHAKE_RESULT *result, SSL_TEST_CTX *test_ctx) ret &= check_protocol(result, test_ctx); ret &= check_servername(result, test_ctx); ret &= check_session_ticket(result, test_ctx); + ret &= check_compression(result, test_ctx); ret &= (result->session_ticket_do_not_call == 0); #ifndef OPENSSL_NO_NEXTPROTONEG ret &= check_npn(result, test_ctx); |