aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-04-01 11:33:41 +0200
committerIngela Anderton Andin <[email protected]>2019-04-03 09:37:01 +0200
commit4429757cc82ea2833bd8d7069ea12d0fa6ea0ebe (patch)
tree4eaa12da923ca43d2dcb43f1c8d71e4f27c30aef /lib/ssl/test/ssl_test_lib.erl
parentcfbe0f159d76dca3085fe2422f73f3e1fefefcfc (diff)
downloadotp-4429757cc82ea2833bd8d7069ea12d0fa6ea0ebe.tar.gz
otp-4429757cc82ea2833bd8d7069ea12d0fa6ea0ebe.tar.bz2
otp-4429757cc82ea2833bd8d7069ea12d0fa6ea0ebe.zip
ssl: Run SNI test on specific TLS versions
We do not want to test OpenSSL default values as the may not agree with our defaults.
Diffstat (limited to 'lib/ssl/test/ssl_test_lib.erl')
-rw-r--r--lib/ssl/test/ssl_test_lib.erl9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl
index 22169035f3..11ad1446f5 100644
--- a/lib/ssl/test/ssl_test_lib.erl
+++ b/lib/ssl/test/ssl_test_lib.erl
@@ -1772,6 +1772,15 @@ is_sane_ecc(crypto) ->
is_sane_ecc(_) ->
sufficient_crypto_support(cipher_ec).
+is_sane_oppenssl_sni() ->
+ [{_,_, Bin}] = crypto:info_lib(),
+ case binary_to_list(Bin) of
+ "OpenSSL 0.9" ++ _ -> % Does not support ECC
+ false;
+ _ ->
+ true
+ end.
+
is_fips(openssl) ->
VersionStr = os:cmd("openssl version"),
case re:split(VersionStr, "fips") of