diff options
author | Matt Caswell <matt@openssl.org> | 2017-03-01 12:11:51 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-03-02 16:49:28 +0000 |
commit | 439db0c97bd50cae008e876c6c8ed5e5011bf6eb (patch) | |
tree | 13a9464ccb5b9b0eb978c9b8dfec46794b939c58 /test/ssl_test_ctx.h | |
parent | f33f9ddefbb34584acb73c51e286f9913af96534 (diff) |
Add compression tests
Check whether we negotiate compression in various scenarios.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2814)
Diffstat (limited to 'test/ssl_test_ctx.h')
-rw-r--r-- | test/ssl_test_ctx.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ssl_test_ctx.h b/test/ssl_test_ctx.h index 499e314e3c..418a4f2ac3 100644 --- a/test/ssl_test_ctx.h +++ b/test/ssl_test_ctx.h @@ -52,6 +52,11 @@ typedef enum { } ssl_session_ticket_t; typedef enum { + SSL_TEST_COMPRESSION_NO = 0, /* Default */ + SSL_TEST_COMPRESSION_YES +} ssl_compression_t; + +typedef enum { SSL_TEST_METHOD_TLS = 0, /* Default */ SSL_TEST_METHOD_DTLS } ssl_test_method_t; @@ -163,6 +168,7 @@ typedef struct { */ ssl_servername_t expected_servername; ssl_session_ticket_t session_ticket_expected; + ssl_compression_t compression_expected; /* The expected NPN/ALPN protocol to negotiate. */ char *expected_npn_protocol; char *expected_alpn_protocol; @@ -192,6 +198,7 @@ const char *ssl_servername_name(ssl_servername_t server); const char *ssl_servername_callback_name(ssl_servername_callback_t servername_callback); const char *ssl_session_ticket_name(ssl_session_ticket_t server); +const char *ssl_compression_name(ssl_compression_t server); const char *ssl_test_method_name(ssl_test_method_t method); const char *ssl_handshake_mode_name(ssl_handshake_mode_t mode); const char *ssl_ct_validation_name(ssl_ct_validation_t mode); |