diff options
author | Loïc Hoguin <[email protected]> | 2015-08-17 18:18:07 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-08-17 18:51:55 +0200 |
commit | d440a2c1d26e4f0770a66279de151806b1ad5ac2 (patch) | |
tree | 774bbcf04a147e10284454a05aa8daecf04d3ec2 /src/ranch_ssl.erl | |
parent | f5f480c5750b76b662430b62ef85ebceea5aadc6 (diff) | |
download | ranch-d440a2c1d26e4f0770a66279de151806b1ad5ac2.tar.gz ranch-d440a2c1d26e4f0770a66279de151806b1ad5ac2.tar.bz2 ranch-d440a2c1d26e4f0770a66279de151806b1ad5ac2.zip |
Don't pass Ranch-specific options down to transports
Should fix Dialyzer issues. The options are now also
documented in the Ranch module, and there's new ranch:opt(),
ranch_tcp:opt() and ranch_ssl:opt() for use in third party
code.
Diffstat (limited to 'src/ranch_ssl.erl')
-rw-r--r-- | src/ranch_ssl.erl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl index a353c97..acfe38d 100644 --- a/src/ranch_ssl.erl +++ b/src/ranch_ssl.erl @@ -35,7 +35,7 @@ -export([shutdown/2]). -export([close/1]). --type opts() :: [{backlog, non_neg_integer()} +-type opt() :: {backlog, non_neg_integer()} | {cacertfile, string()} | {cacerts, [Der::binary()]} | {cert, Der::binary()} @@ -64,7 +64,10 @@ | {send_timeout_close, boolean()} | {verify, ssl:verify_type()} | {verify_fun, {fun(), InitialUserState::term()}} - | {versions, [atom()]}]. + | {versions, [atom()]}. +-export_type([opt/0]). + +-type opts() :: [opt()]. -export_type([opts/0]). name() -> ssl. |