nickva commented on a change in pull request #5:
URL: https://github.com/apache/couchdb-mochiweb/pull/5#discussion_r639106718



##########
File path: src/mochiweb_socket.erl
##########
@@ -30,7 +30,7 @@ listen(Ssl, Port, Opts, SslOpts) ->
     end.
 
 add_unbroken_ciphers_default(Opts) ->
-    Default = filter_unsecure_cipher_suites(ssl:cipher_suites()),
+    Default = filter_unsecure_cipher_suites(ssl:cipher_suites(default, 
'tlsv1.3')),

Review comment:
       Also note that the format of the result is different too:
   
   ```
   16> rp(ssl:cipher_suites(default, 'tlsv1')).
   [#{cipher => aes_256_cbc,key_exchange => ecdhe_ecdsa,
      mac => sha,prf => default_prf},
    #{cipher => aes_256_cbc,key_exchange => ecdhe_rsa,mac => sha,
      prf => default_prf},
   ```
   
   ```
   19> rp(ssl:cipher_suites()).
   [{any,aes_256_gcm,aead,sha384},
    {any,aes_128_gcm,aead,sha256},
    {any,chacha20_poly1305,aead,sha256},
    {any,aes_128_ccm,aead,sha256},
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to