summaryrefslogtreecommitdiff
path: root/test/clienthellotest.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-03-19 09:08:06 +0100
committerRichard Levitte <levitte@openssl.org>2018-03-19 18:24:30 +0100
commit7d7f6834e542e53f604b46a72d57fad773d4b2bc (patch)
tree4b126c6099d838deea5c740751141291807037bc /test/clienthellotest.c
parent2e2faa8c4802f2fcecea699ddda246929b2ca329 (diff)
downloadopenssl-new-7d7f6834e542e53f604b46a72d57fad773d4b2bc.tar.gz
Enhance ssltestlib's create_ssl_ctx_pair to take min and max proto version
Have all test programs using that function specify those versions. Additionally, have the remaining test programs that use SSL_CTX_new directly specify at least the maximum protocol version. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5663)
Diffstat (limited to 'test/clienthellotest.c')
-rw-r--r--test/clienthellotest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/clienthellotest.c b/test/clienthellotest.c
index 5eded83bda..10e3b1b1b1 100644
--- a/test/clienthellotest.c
+++ b/test/clienthellotest.c
@@ -78,6 +78,8 @@ static int test_client_hello(int currtest)
ctx = SSL_CTX_new(TLS_method());
if (!TEST_ptr(ctx))
goto end;
+ if (!TEST_true(SSL_CTX_set_max_proto_version(ctx, TLS_MAX_VERSION)))
+ goto end;
switch(currtest) {
case TEST_SET_SESSION_TICK_DATA_VER_NEG: