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:27:13 +0100 |
commit | b402b77da33cc36ee893fa498be2e4220178524b (patch) | |
tree | 0c9dc2cc5522eadf686628d35a3b1ac2356e8359 /test/fatalerrtest.c | |
parent | b4ea929d51c6d0ec0aab78072b81f39289b6de84 (diff) |
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/5662)
Diffstat (limited to 'test/fatalerrtest.c')
-rw-r--r-- | test/fatalerrtest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fatalerrtest.c b/test/fatalerrtest.c index 690d7e2d2b..b6f0f4f4b9 100644 --- a/test/fatalerrtest.c +++ b/test/fatalerrtest.c @@ -28,7 +28,8 @@ static int test_fatalerr(void) 0x17, 0x03, 0x03, 0x00, 0x05, 'D', 'u', 'm', 'm', 'y' }; - if (!create_ssl_ctx_pair(SSLv23_method(), SSLv23_method(), &sctx, &cctx, + if (!create_ssl_ctx_pair(SSLv23_method(), SSLv23_method(), + SSL3_VERSION, TLS_MAX_VERSION, &sctx, &cctx, cert, privkey)) { printf("Failed to create SSL_CTX pair\n"); goto err; |