diff options
author | Ingela Anderton Andin <[email protected]> | 2019-07-29 15:11:53 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2019-07-31 09:44:49 +0200 |
commit | ad8c607df66aac55ca6133281635513a34ef5a88 (patch) | |
tree | cab49ef28b6635d096c3063381ad83b4fc67de37 /lib/ssl/test/ssl_test_lib.erl | |
parent | b3244adc38777adbb4474a1e34e098eecda370af (diff) | |
download | otp-ad8c607df66aac55ca6133281635513a34ef5a88.tar.gz otp-ad8c607df66aac55ca6133281635513a34ef5a88.tar.bz2 otp-ad8c607df66aac55ca6133281635513a34ef5a88.zip |
ssl: Avoid broken ALPN/NPN renegotiation in OpenSSL
All these test work fine with current OpenSSL master
Diffstat (limited to 'lib/ssl/test/ssl_test_lib.erl')
-rw-r--r-- | lib/ssl/test/ssl_test_lib.erl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/ssl/test/ssl_test_lib.erl b/lib/ssl/test/ssl_test_lib.erl index 7009a628f1..9bf2393897 100644 --- a/lib/ssl/test/ssl_test_lib.erl +++ b/lib/ssl/test/ssl_test_lib.erl @@ -2716,3 +2716,25 @@ new_config(PrivDir, ServerOpts0) -> [{cacertfile, NewCaCertFile}, {certfile, NewCertFile}, {keyfile, NewKeyFile} | ServerOpts]. + +sane_openssl_alpn_npn_renegotiate() -> + case os:cmd("openssl version") of + "LibreSSL 2.9.1" ++ _ -> + false; + "LibreSSL 2.6.4" ++ _ -> + false; + "OpenSSL 1.1.1a-freebsd" ++ _ -> + false; + _ -> + true + end. + +openssl_sane_dtls_alpn() -> + case os:cmd("openssl version") of + "OpenSSL 1.1.0g" ++ _ -> + false; + "OpenSSL 1.1.1a" ++ _ -> + false; + _-> + openssl_sane_dtls() + end. |