aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_test_lib.erl
diff options
context:
space:
mode:
authorAndreas Schultz <[email protected]>2016-04-28 13:27:47 +0200
committerIngela Anderton Andin <[email protected]>2016-05-20 09:05:48 +0200
commit8cca5a5111fdde6c6048266b9e4dbd171f721afa (patch)
tree1be8921b9e12c7c98b9352b6c622f0f769900475 /lib/ssl/test/ssl_test_lib.erl
parentbe135add07d7fd8e17e50eab1db7aec2c266bc5e (diff)
downloadotp-8cca5a5111fdde6c6048266b9e4dbd171f721afa.tar.gz
otp-8cca5a5111fdde6c6048266b9e4dbd171f721afa.tar.bz2
otp-8cca5a5111fdde6c6048266b9e4dbd171f721afa.zip
ssl: move TLS/DTLS version logging into helper
Consolidate code that logs TLS/DTLS version during testing into ssl_test_lib.
Diffstat (limited to 'lib/ssl/test/ssl_test_lib.erl')
-rw-r--r--lib/ssl/test/ssl_test_lib.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl
index 310c883fc2..6949cbb6ed 100644
--- a/lib/ssl/test/ssl_test_lib.erl
+++ b/lib/ssl/test/ssl_test_lib.erl
@@ -1326,3 +1326,11 @@ protocol_options(Config, Options) ->
Protocol = proplists:get_value(protocol, Config, tls),
{Protocol, Opts} = lists:keyfind(Protocol, 1, Options),
Opts.
+
+ct_log_supported_protocol_versions(Config) ->
+ case proplists:get_value(protocol, Config) of
+ dtls ->
+ ct:log("DTLS version ~p~n ", [dtls_record:supported_protocol_versions()]);
+ _ ->
+ ct:log("TLS/SSL version ~p~n ", [tls_record:supported_protocol_versions()])
+ end.