From eb83dc0cd8f9579083192adde7f6f921e18dfbf0 Mon Sep 17 00:00:00 2001 From: Klaus Trainer Date: Sun, 22 Sep 2013 02:38:30 +0200 Subject: 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. --- src/ranch_ssl.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()); -- cgit v1.2.3