diff options
author | Matt Caswell <matt@openssl.org> | 2018-04-27 13:09:08 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-05-03 00:30:47 +0200 |
commit | 6021d8ec5affe07116cdae81fa3db81d67996aac (patch) | |
tree | 30861242918e3ce942664e97c12b148684714095 /test/ssltestlib.c | |
parent | Add some documentation for SSL_get_shared_ciphers() (diff) | |
download | openssl-6021d8ec5affe07116cdae81fa3db81d67996aac.tar.xz openssl-6021d8ec5affe07116cdae81fa3db81d67996aac.zip |
Fix a bug in create_ssl_ctx_pair()
The max protocol version was only being set on the server side. It should
have been done on both the client and the server.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6113)
Diffstat (limited to 'test/ssltestlib.c')
-rw-r--r-- | test/ssltestlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ssltestlib.c b/test/ssltestlib.c index ebd87cc7f0..959e3296a8 100644 --- a/test/ssltestlib.c +++ b/test/ssltestlib.c @@ -531,10 +531,10 @@ int create_ssl_ctx_pair(const SSL_METHOD *sm, const SSL_METHOD *cm, goto err; if (clientctx != NULL && ((min_proto_version > 0 - && !TEST_true(SSL_CTX_set_min_proto_version(serverctx, + && !TEST_true(SSL_CTX_set_min_proto_version(clientctx, min_proto_version))) || (max_proto_version > 0 - && !TEST_true(SSL_CTX_set_max_proto_version(serverctx, + && !TEST_true(SSL_CTX_set_max_proto_version(clientctx, max_proto_version))))) goto err; |