aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_ssl.erl
diff options
context:
space:
mode:
authorjuhlig <[email protected]>2019-06-24 13:18:31 +0200
committerLoïc Hoguin <[email protected]>2019-07-01 13:20:43 +0200
commit37e64f50df640803625771bc3655b6db6c351493 (patch)
tree63a5d6160295bfca0197193cdeeb2fddd11b9be2 /src/ranch_ssl.erl
parente8d6401741021f76988091e6dc633afb65ffbe7b (diff)
downloadranch-37e64f50df640803625771bc3655b6db6c351493.tar.gz
ranch-37e64f50df640803625771bc3655b6db6c351493.tar.bz2
ranch-37e64f50df640803625771bc3655b6db6c351493.zip
Add missing specs
Diffstat (limited to 'src/ranch_ssl.erl')
-rw-r--r--src/ranch_ssl.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl
index cf876fe..b6ca50b 100644
--- a/src/ranch_ssl.erl
+++ b/src/ranch_ssl.erl
@@ -90,12 +90,14 @@
-type opts() :: [opt()].
-export_type([opts/0]).
+-spec name() -> ssl.
name() -> ssl.
-spec secure() -> boolean().
secure() ->
true.
+-spec messages() -> {ssl, ssl_closed, ssl_error, ssl_passive}.
messages() -> {ssl, ssl_closed, ssl_error, ssl_passive}.
-spec listen(ranch:transport_opts(opts())) -> {ok, ssl:sslsocket()} | {error, atom()}.
@@ -125,6 +127,7 @@ do_listen(SocketOpts0, Logger) ->
%% 'binary' and 'list' are disallowed but they are handled
%% specifically as they do not have 2-tuple equivalents.
+-spec disallowed_listen_options() -> [atom()].
disallowed_listen_options() ->
[alpn_advertised_protocols, client_preferred_next_protocols,
fallback, server_name_indication, srp_identity