diff options
author | Ingela Anderton Andin <[email protected]> | 2017-05-09 15:56:03 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2017-05-15 11:03:32 +0200 |
commit | 1ff077bc7b68f06b0c6157527ca00f4ff5aa4ff4 (patch) | |
tree | 70400f58653a0aa5af187d14aabce4a030e993ef /lib/ssl | |
parent | 0049bee925a014c2dfb49c8d98eac94165532070 (diff) | |
download | otp-1ff077bc7b68f06b0c6157527ca00f4ff5aa4ff4.tar.gz otp-1ff077bc7b68f06b0c6157527ca00f4ff5aa4ff4.tar.bz2 otp-1ff077bc7b68f06b0c6157527ca00f4ff5aa4ff4.zip |
ssl: Disable Server Name verification in bench tests for now
Diffstat (limited to 'lib/ssl')
-rw-r--r-- | lib/ssl/test/ssl_bench_SUITE.erl | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lib/ssl/test/ssl_bench_SUITE.erl b/lib/ssl/test/ssl_bench_SUITE.erl index 960ddf7808..ae2928b1c3 100644 --- a/lib/ssl/test/ssl_bench_SUITE.erl +++ b/lib/ssl/test/ssl_bench_SUITE.erl @@ -410,13 +410,19 @@ ssl_opts(connect_der) -> [{verify, verify_peer} | ssl_opts("client_der")]; ssl_opts(Role) -> CertData = cert_data(Role), - [{active, false}, - {depth, 2}, - {reuseaddr, true}, - {mode,binary}, - {nodelay, true}, - {ciphers, [{dhe_rsa,aes_256_cbc,sha}]} - |CertData]. + Opts = [{active, false}, + {depth, 2}, + {reuseaddr, true}, + {mode,binary}, + {nodelay, true}, + {ciphers, [{dhe_rsa,aes_256_cbc,sha}]} + |CertData], + case Role of + "client" ++ _ -> + [{server_name_indication, disable} | Opts]; + "server" ++ _ -> + Opts + end. cert_data(Der) when Der =:= "server_der"; Der =:= "client_der" -> [Role,_] = string:tokens(Der, "_"), |