From 7d7f6834e542e53f604b46a72d57fad773d4b2bc Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 19 Mar 2018 09:08:06 +0100 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/5663) --- test/fatalerrtest.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/fatalerrtest.c') diff --git a/test/fatalerrtest.c b/test/fatalerrtest.c index 85b11c84aa..d3a23e5f3d 100644 --- a/test/fatalerrtest.c +++ b/test/fatalerrtest.c @@ -28,8 +28,9 @@ static int test_fatalerr(void) 0x17, 0x03, 0x03, 0x00, 0x05, 'D', 'u', 'm', 'm', 'y' }; - if (!TEST_true(create_ssl_ctx_pair(TLS_method(), TLS_method(), &sctx, &cctx, - cert, privkey))) + if (!TEST_true(create_ssl_ctx_pair(TLS_method(), TLS_method(), + TLS1_VERSION, TLS_MAX_VERSION, + &sctx, &cctx, cert, privkey))) goto err; /* -- cgit v1.2.3