summaryrefslogtreecommitdiffstats
path: root/test/handshake_helper.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-03-01 12:11:51 +0000
committerMatt Caswell <matt@openssl.org>2017-03-02 16:49:28 +0000
commit439db0c97bd50cae008e876c6c8ed5e5011bf6eb (patch)
tree13a9464ccb5b9b0eb978c9b8dfec46794b939c58 /test/handshake_helper.c
parentf33f9ddefbb34584acb73c51e286f9913af96534 (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/handshake_helper.c')
-rw-r--r--test/handshake_helper.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/handshake_helper.c b/test/handshake_helper.c
index 88f6aec894..99b6ad1941 100644
--- a/test/handshake_helper.c
+++ b/test/handshake_helper.c
@@ -1207,6 +1207,9 @@ static HANDSHAKE_RESULT *do_handshake_internal(
ret->session_ticket = SSL_TEST_SESSION_TICKET_NO;
else
ret->session_ticket = SSL_TEST_SESSION_TICKET_YES;
+ ret->compression = (SSL_get_current_compression(client.ssl) == NULL)
+ ? SSL_TEST_COMPRESSION_NO
+ : SSL_TEST_COMPRESSION_YES;
ret->session_ticket_do_not_call = server_ex_data.session_ticket_do_not_call;
#ifndef OPENSSL_NO_NEXTPROTONEG