<div>Thank you guys for your prompt response.</div><div>I'll update my Elang version then. </div><div><br></div><div>/Frank</div><div><br><div class="gmail_quote"><div><<a href="mailto:dmitryme@gmail.com">dmitryme@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg">Hello,<div class="gmail_msg">this patch for ssl-6.0/src/ssl_cipher.erl should help</div><div class="gmail_msg">Another solution is to switch to modern Erlang 18.0, 19.0, ...<br class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><pre style="box-sizing:border-box;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:11.9px;margin-top:0px;font-stretch:normal;line-height:1.45;word-wrap:normal;padding:16px;overflow:auto;background-color:rgb(247,247,247);border-radius:3px;color:rgb(51,51,51);margin-bottom:0px" class="gmail_msg"><code style="box-sizing:border-box;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:11.9px;padding:0px;margin:0px;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:transparent;border-radius:3px;word-break:normal;border:0px;display:inline;overflow:visible;line-height:inherit;word-wrap:normal" class="gmail_msg">--- ssl_cipher.erl 2017-01-28 17:47:08.728720668 +0300
+++ ssl_cipher.erl.new 2017-01-28 17:46:40.860480295 +0300
@@ -1209,7 +1209,9 @@
hash_algorithm(?SHA224) -> sha224;
hash_algorithm(?SHA256) -> sha256;
hash_algorithm(?SHA384) -> sha384;
-hash_algorithm(?SHA512) -> sha512.
+hash_algorithm(?SHA512) -> sha512;
+hash_algorithm(Other) when is_integer(Other) andalso ((Other >= 7) and (Other =< 223)) -> unassigned;
+hash_algorithm(Other) when is_integer(Other) andalso ((Other >= 224) and (Other =< 255)) -> Other.
sign_algorithm(anon) -> ?ANON;
sign_algorithm(rsa) -> ?RSA;
@@ -1218,7 +1220,9 @@
sign_algorithm(?ANON) -> anon;
sign_algorithm(?RSA) -> rsa;
sign_algorithm(?DSA) -> dsa;
-sign_algorithm(?ECDSA) -> ecdsa.
+sign_algorithm(?ECDSA) -> ecdsa;
+sign_algorithm(Other) when is_integer(Other) andalso ((Other >= 4) and (Other =< 223)) -> unassigned;
+sign_algorithm(Other) when is_integer(Other) andalso ((Other >= 224) and (Other =< 255)) -> Other.
hash_size(null) ->
0;
----------------</code></pre></div></div></div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">On Wed, Feb 8, 2017 at 8:47 PM, Frank Muller <span class="gmail_msg"><<a href="mailto:frank.muller.erl@gmail.com" class="gmail_msg" target="_blank">frank.muller.erl@gmail.com</a>></span> wrote:<br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I'm seeing these SSL errors in the app's logs:</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">2017-02-08 12:38:55.227 [error] <0.577.0> Ranch listener https terminated with reason: {{function_clause,[{ssl_cipher,hash_algorithm,"\b",[{file,"ssl_cipher.erl"},{line,1199}]},{ssl_handshake,'-dec_hello_extensions/2-lc$^0/1-1-',1,[{file,"ssl_handshake.erl"},{line,1706}]},{ssl_handshake,'-dec_hello_extensions/2-lc$^0/1-1-',1,[{file,"ssl_handshake.erl"},{line,1707}]},{ssl_handshake,dec_hello_extensions,2,[{file,"ssl_handshake.erl"},{line,1706}]},{tls_handshake,decode_handshake,3,[{file,"tls_handshake.erl"},{line,206}]},{tls_handshake,get_tls_handshake_aux,3,[{file,"tls_handsha..."},...]},...]},...}</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">2017-02-08 12:38:55.228 [error] <0.576.0> Ranch listener https terminated with reason: {{function_clause,[{ssl_cipher,hash_algorithm,"\b",[{file,"ssl_cipher.erl"},{line,1199}]},{ssl_handshake,'-dec_hello_extensions/2-lc$^0/1-1-',1,[{file,"ssl_handshake.erl"},{line,1706}]},{ssl_handshake,'-dec_hello_extensions/2-lc$^0/1-1-',1,[{file,"ssl_handshake.erl"},{line,1707}]},{ssl_handshake,dec_hello_extensions,2,[{file,"ssl_handshake.erl"},{line,1706}]},{tls_handshake,decode_handshake,3,[{file,"tls_handshake.erl"},{line,206}]},{tls_handshake,get_tls_handshake_aux,3,[{file,"tls_handsha..."},...]},...]},...}</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">2017-02-08 12:38:55.235 [error] <0.578.0> gen_fsm <0.578.0> in state hello terminated with reason: no function clause matching ssl_cipher:hash_algorithm(8) line 1199</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">2017-02-08 12:38:55.235 [error] <0.578.0> CRASH REPORT Process <0.578.0> with 0 neighbours exited with reason: no function clause matching ssl_cipher:hash_algorithm(8) line 1199 in gen_fsm:terminate/7 line 611</span><br style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">I'm using Erlang 17.5 under Linux.</span></div><div class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">Can anyone help on this please?</span></div><div class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg"><br class="gmail_msg"></span></div><div class="gmail_msg"><span style="font-family:UICTFontTextStyleBody;font-size:17px" class="gmail_msg">Thanks in advance. </span></div><span class="m_8465008265365870919HOEnZb gmail_msg"><font color="#888888" class="gmail_msg"><div class="gmail_msg"><font face="UICTFontTextStyleBody" class="gmail_msg"><span style="font-size:17px" class="gmail_msg">/Frank</span></font></div>
</font></span><br class="gmail_msg"></blockquote></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br class="gmail_msg">
erlang-questions mailing list<br class="gmail_msg">
<a href="mailto:erlang-questions@erlang.org" class="gmail_msg" target="_blank">erlang-questions@erlang.org</a><br class="gmail_msg">
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" class="gmail_msg" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br class="gmail_msg">
<br class="gmail_msg"></blockquote></div></div></blockquote></div></div>