diff options
author | Ingela Anderton Andin <[email protected]> | 2010-08-24 11:05:28 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2010-08-31 15:08:11 +0200 |
commit | 1c3ed28fc20b64a8419a939c7417000be1e63c5c (patch) | |
tree | 2a94ac05abd324db4113f726ad95994c138936a8 /lib/ssl/test/ssl_to_openssl_SUITE.erl | |
parent | 82d430853eb1f53e6022de647c26254fe5681454 (diff) | |
download | otp-1c3ed28fc20b64a8419a939c7417000be1e63c5c.tar.gz otp-1c3ed28fc20b64a8419a939c7417000be1e63c5c.tar.bz2 otp-1c3ed28fc20b64a8419a939c7417000be1e63c5c.zip |
Add tests for crypto RC4 bug
Changed test so that the test cases testing all different ciphers
also sends data so that that the calls to crypto cipher functions
are also tested.
Diffstat (limited to 'lib/ssl/test/ssl_to_openssl_SUITE.erl')
-rw-r--r-- | lib/ssl/test/ssl_to_openssl_SUITE.erl | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/lib/ssl/test/ssl_to_openssl_SUITE.erl b/lib/ssl/test/ssl_to_openssl_SUITE.erl index 75cfce0052..7f512f2ab9 100644 --- a/lib/ssl/test/ssl_to_openssl_SUITE.erl +++ b/lib/ssl/test/ssl_to_openssl_SUITE.erl @@ -1136,17 +1136,31 @@ cipher(CipherSuite, Version, Config, ClientOpts, ServerOpts) -> wait_for_openssl_server(), + ConnectionInfo = {ok, {Version, CipherSuite}}, + Client = ssl_test_lib:start_client([{node, ClientNode}, {port, Port}, {host, Hostname}, {from, self()}, - {mfa, {?MODULE, connection_info_result, []}}, + {mfa, {ssl_test_lib, cipher_result, [ConnectionInfo]}}, {options, [{ciphers,[CipherSuite]} | ClientOpts]}]), - - ClientMsg = {ok, {Version, CipherSuite}}, - - Result = ssl_test_lib:wait_for_result(Client, ClientMsg), + + port_command(OpenSslPort, "Hello\n"), + + receive + {Port, {data, _}} when is_port(Port) -> + ok + after 500 -> + test_server:format("Time out on openssl port, check that" + " the messages Hello and world are received" + " during close of port" , []), + ok + end, + + port_command(OpenSslPort, " world\n"), + + Result = ssl_test_lib:wait_for_result(Client, ok), close_port(OpenSslPort), %% Clean close down! |