diff options
author | Ingela Anderton Andin <[email protected]> | 2017-05-09 16:29:49 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-05-09 16:29:49 +0200 |
commit | d12052519312e9f4e3bb189e57322e3097497105 (patch) | |
tree | ca92bc178550306a3fcdeaebb9442a6aed5cbf50 /lib/ssl/test | |
parent | d7745eb8439e20f6bd36c6654fc5d3c65ae99e8e (diff) | |
download | otp-d12052519312e9f4e3bb189e57322e3097497105.tar.gz otp-d12052519312e9f4e3bb189e57322e3097497105.tar.bz2 otp-d12052519312e9f4e3bb189e57322e3097497105.zip |
ssl: Only run sslv2 reject tests on old OpenSSL version
Diffstat (limited to 'lib/ssl/test')
-rw-r--r-- | lib/ssl/test/ssl_test_lib.erl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl index a59da1b65a..3e89851c91 100644 --- a/lib/ssl/test/ssl_test_lib.erl +++ b/lib/ssl/test/ssl_test_lib.erl @@ -1394,6 +1394,18 @@ portable_open_port(Exe, Args) -> open_port({spawn_executable, AbsPath}, [{args, Args}, stderr_to_stdout]). +supports_ssl_tls_version(sslv2 = Version) -> + case os:cmd("openssl version") of + "OpenSSL 1" ++ _ -> + false; + _ -> + VersionFlag = version_flag(Version), + Exe = "openssl", + Args = ["s_client", VersionFlag], + Port = ssl_test_lib:portable_open_port(Exe, Args), + do_supports_ssl_tls_version(Port) + end; + supports_ssl_tls_version(Version) -> VersionFlag = version_flag(Version), Exe = "openssl", |