aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/test
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-05-09 15:56:03 +0200
committerIngela Anderton Andin <[email protected]>2017-05-15 11:03:32 +0200
commit1ff077bc7b68f06b0c6157527ca00f4ff5aa4ff4 (patch)
tree70400f58653a0aa5af187d14aabce4a030e993ef /lib/ssl/test
parent0049bee925a014c2dfb49c8d98eac94165532070 (diff)
downloadotp-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/test')
-rw-r--r--lib/ssl/test/ssl_bench_SUITE.erl20
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, "_"),