diff options
author | Ingela Anderton Andin <[email protected]> | 2018-03-08 09:37:50 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2018-03-08 09:37:50 +0100 |
commit | 88f654aa94e7a51681ad5774a0677bfa2fba77bd (patch) | |
tree | 70dcaddaf422c25e41efe1b8df0cdc95df30152a /lib/ssl/test | |
parent | 9bc4a096025254aed157e4753743be61ce1f7489 (diff) | |
parent | 0ff4a42e31e4ef8d190e3be866315a774b590745 (diff) | |
download | otp-88f654aa94e7a51681ad5774a0677bfa2fba77bd.tar.gz otp-88f654aa94e7a51681ad5774a0677bfa2fba77bd.tar.bz2 otp-88f654aa94e7a51681ad5774a0677bfa2fba77bd.zip |
Merge branch 'ingela/ssl/no-automated-fallback/OTP-14789'
Diffstat (limited to 'lib/ssl/test')
-rw-r--r-- | lib/ssl/test/ssl_basic_SUITE.erl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_basic_SUITE.erl b/lib/ssl/test/ssl_basic_SUITE.erl index 2781203557..05979d3cfd 100644 --- a/lib/ssl/test/ssl_basic_SUITE.erl +++ b/lib/ssl/test/ssl_basic_SUITE.erl @@ -194,6 +194,7 @@ renegotiate_tests() -> [client_renegotiate, server_renegotiate, client_secure_renegotiate, + client_secure_renegotiate_fallback, client_renegotiate_reused_session, server_renegotiate_reused_session, client_no_wrap_sequence_number, @@ -2898,6 +2899,36 @@ client_secure_renegotiate(Config) when is_list(Config) -> ssl_test_lib:close(Server), ssl_test_lib:close(Client). +%%-------------------------------------------------------------------- +client_secure_renegotiate_fallback() -> + [{doc,"Test that we can set secure_renegotiate to false that is " + "fallback option, we however do not have a insecure server to test against!"}]. +client_secure_renegotiate_fallback(Config) when is_list(Config) -> + ServerOpts = ssl_test_lib:ssl_options(server_opts, Config), + ClientOpts = ssl_test_lib:ssl_options(client_opts, Config), + + {ClientNode, ServerNode, Hostname} = ssl_test_lib:run_where(Config), + + Data = "From erlang to erlang", + + Server = + ssl_test_lib:start_server([{node, ServerNode}, {port, 0}, + {from, self()}, + {mfa, {?MODULE, erlang_ssl_receive, [Data]}}, + {options, [{secure_renegotiate, false} | ServerOpts]}]), + Port = ssl_test_lib:inet_port(Server), + + Client = ssl_test_lib:start_client([{node, ClientNode}, {port, Port}, + {host, Hostname}, + {from, self()}, + {mfa, {?MODULE, + renegotiate, [Data]}}, + {options, [{reuse_sessions, false}, + {secure_renegotiate, false}| ClientOpts]}]), + + ssl_test_lib:check_result(Client, ok, Server, ok), + ssl_test_lib:close(Server), + ssl_test_lib:close(Client). %%-------------------------------------------------------------------- server_renegotiate() -> |