aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-05-18 14:51:52 +0200
committerIngela Anderton Andin <[email protected]>2015-05-19 12:07:50 +0200
commitd55d1e0239a880eac85946e99f6137925eb0147a (patch)
treed7c0d082ee8789ea98b8de1c5016ee659230bce1 /lib/ssl/test/ssl_test_lib.erl
parent9ad75229be650040776565f64b623fd9cf69d081 (diff)
downloadotp-d55d1e0239a880eac85946e99f6137925eb0147a.tar.gz
otp-d55d1e0239a880eac85946e99f6137925eb0147a.tar.bz2
otp-d55d1e0239a880eac85946e99f6137925eb0147a.zip
ssl: Use new API function connection_information in tests
connection_info -> connection_information
Diffstat (limited to 'lib/ssl/test/ssl_test_lib.erl')
-rw-r--r--lib/ssl/test/ssl_test_lib.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl
index 8b98e6f16b..a3bfdf8893 100644
--- a/lib/ssl/test/ssl_test_lib.erl
+++ b/lib/ssl/test/ssl_test_lib.erl
@@ -949,7 +949,8 @@ der_to_pem(File, Entries) ->
file:write_file(File, PemBin).
cipher_result(Socket, Result) ->
- Result = ssl:connection_info(Socket),
+ {ok, Info} = ssl:connection_information(Socket),
+ Result = {ok, {proplists:get_value(protocol, Info), proplists:get_value(cipher_suite, Info)}},
ct:log("~p:~p~nSuccessfull connect: ~p~n", [?MODULE,?LINE, Result]),
%% Importante to send two packets here
%% to properly test "cipher state" handling