aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test/ssl_test_lib.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-01-25 10:50:29 +0100
committerIngela Anderton Andin <[email protected]>2018-01-25 16:23:06 +0100
commitc0dd8fa1446b276d35557ede18199c629b2ed590 (patch)
tree955eb7282891e1e9f45ca66fe4a087af94f4af3b /lib/ssl/test/ssl_test_lib.erl
parentb171521e68262b9a830e8b8dd98467097d283753 (diff)
downloadotp-c0dd8fa1446b276d35557ede18199c629b2ed590.tar.gz
otp-c0dd8fa1446b276d35557ede18199c629b2ed590.tar.bz2
otp-c0dd8fa1446b276d35557ede18199c629b2ed590.zip
ssl: Check OpenSSL version for DSS (DSA) support
LibreSSL-2.6.3 dropped DSS (DSA) support
Diffstat (limited to 'lib/ssl/test/ssl_test_lib.erl')
-rw-r--r--lib/ssl/test/ssl_test_lib.erl26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl
index f9cc6ab8b7..5c9ea068bf 100644
--- a/lib/ssl/test/ssl_test_lib.erl
+++ b/lib/ssl/test/ssl_test_lib.erl
@@ -1309,6 +1309,32 @@ cipher_restriction(Config0) ->
Config0
end.
+openssl_dsa_support() ->
+ case os:cmd("openssl version") of
+ "LibreSSL 2.6.1" ++ _ ->
+ true;
+ "LibreSSL 2.6.2" ++ _ ->
+ true;
+ "LibreSSL 2.6" ++ _ ->
+ false;
+ "LibreSSL 2.4" ++ _ ->
+ true;
+ "LibreSSL 2.3" ++ _ ->
+ true;
+ "LibreSSL 2.2" ++ _ ->
+ true;
+ "LibreSSL 2.1" ++ _ ->
+ true;
+ "LibreSSL 2.0" ++ _ ->
+ true;
+ "LibreSSL" ++ _ ->
+ false;
+ "OpenSSL 1.0.1" ++ Rest ->
+ hd(Rest) >= s;
+ _ ->
+ true
+ end.
+
check_sane_openssl_version(Version) ->
case supports_ssl_tls_version(Version) of
true ->