diff options
author | Richard Levitte <levitte@openssl.org> | 2018-03-19 09:08:06 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-03-19 18:24:30 +0100 |
commit | 7d7f6834e542e53f604b46a72d57fad773d4b2bc (patch) | |
tree | 4b126c6099d838deea5c740751141291807037bc /test/dtlstest.c | |
parent | 2e2faa8c4802f2fcecea699ddda246929b2ca329 (diff) | |
download | openssl-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/dtlstest.c')
-rw-r--r-- | test/dtlstest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dtlstest.c b/test/dtlstest.c index 7e511f7d6f..f4f9924a86 100644 --- a/test/dtlstest.c +++ b/test/dtlstest.c @@ -61,8 +61,9 @@ static int test_dtls_unprocessed(int testidx) timer_cb_count = 0; if (!TEST_true(create_ssl_ctx_pair(DTLS_server_method(), - DTLS_client_method(), &sctx, - &cctx, cert, privkey))) + DTLS_client_method(), + DTLS1_VERSION, DTLS_MAX_VERSION, + &sctx, &cctx, cert, privkey))) return 0; if (!TEST_true(SSL_CTX_set_cipher_list(cctx, "AES128-SHA"))) |