Browse Source

Fix Dialyzer warning on unknown `ssl_cipher:erl_cipher_suite/0' type

* Up until OTP 21.0 it was defined on the ssl_cipher[0] module
* On OTP 21.1 it was moved into ssl_cipher_format[1]
* On OTP 21.3 it was moved into ssl[2]

[0]: https://github.com/erlang/otp/blob/OTP-21.0/lib/ssl/src/ssl_cipher.erl#L56-L60
[1]: https://github.com/erlang/otp/blob/OTP-21.1/lib/ssl/src/ssl_cipher_format.erl#L40-L44
[2]: https://github.com/erlang/otp/blob/OTP-21.3/lib/ssl/src/ssl.erl#L136-L140
Guilherme Andrade 6 years ago
parent
commit
012ee216f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ranch_ssl.erl

+ 1 - 1
src/ranch_ssl.erl

@@ -51,7 +51,7 @@
 	| {cacerts, [public_key:der_encoded()]}
 	| {cert, public_key:der_encoded()}
 	| {certfile, string()}
-	| {ciphers, [ssl_cipher:erl_cipher_suite()]}
+	| {ciphers, [ssl:erl_cipher_suite()]}
 	| {client_renegotiation, boolean()}
 	| {crl_cache, {module(), {internal | any(), list()}}}
 	| {crl_check, boolean() | peer | best_effort}