aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus Trainer <[email protected]>2013-09-22 02:38:30 +0200
committerKlaus Trainer <[email protected]>2013-09-22 02:38:30 +0200
commiteb83dc0cd8f9579083192adde7f6f921e18dfbf0 (patch)
treef327e0165964e9af8fee447daef9f1376a4fcb41
parentf047b0990c4385eb6d5678b06fa2b404c66eb8b4 (diff)
downloadranch-eb83dc0cd8f9579083192adde7f6f921e18dfbf0.tar.gz
ranch-eb83dc0cd8f9579083192adde7f6f921e18dfbf0.tar.bz2
ranch-eb83dc0cd8f9579083192adde7f6f921e18dfbf0.zip
Use previous ecc workaround for R16B02 as well
The implementation of elliptic-curve ciphers that has been introduced in R16B01 is still incomplete (and broken). This makes our previous workaround (see c0c09a1311) work for R16B02 as well.
-rw-r--r--src/ranch_ssl.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl
index dfc5f11..f4a3c50 100644
--- a/src/ranch_ssl.erl
+++ b/src/ranch_ssl.erl
@@ -281,7 +281,7 @@ ssl_accept(Socket, Timeout) ->
-spec unbroken_cipher_suites() -> [ssl:erl_cipher_suite()].
unbroken_cipher_suites() ->
case proplists:get_value(ssl_app, ssl:versions()) of
- "5.3" ->
+ Version when Version =:= "5.3"; Version =:= "5.3.1" ->
lists:filter(fun(Suite) ->
string:left(atom_to_list(element(1, Suite)), 4) =/= "ecdh"
end, ssl:cipher_suites());