aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-06-20 15:15:14 +0200
committerLoïc Hoguin <[email protected]>2013-06-20 15:15:14 +0200
commitc74d53af61639b478032d0955c829b103fba294c (patch)
tree61fe946f670152d0b0bbeb5162c26797b38ec0b7 /src
parent033afb1a440e613b6c54f1837b1df4e798040719 (diff)
downloadranch-c74d53af61639b478032d0955c829b103fba294c.tar.gz
ranch-c74d53af61639b478032d0955c829b103fba294c.tar.bz2
ranch-c74d53af61639b478032d0955c829b103fba294c.zip
Add asn1 to the list of applications that need to be started for SSL
Diffstat (limited to 'src')
-rw-r--r--src/ranch_ssl.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl
index 4129f18..512f3b4 100644
--- a/src/ranch_ssl.erl
+++ b/src/ranch_ssl.erl
@@ -16,10 +16,11 @@
%%
%% Wrapper around <em>ssl</em> implementing the Ranch transport API.
%%
-%% This transport requires the <em>crypto</em>, <em>public_key</em>
-%% and <em>ssl</em> applications to be started. If they aren't started,
-%% it will try to start them itself before opening a port to listen.
-%% Applications aren't stopped when the listening socket is closed, though.
+%% This transport requires the <em>crypto</em>, <em>asn1</em>,
+%% <em>public_key</em> and <em>ssl</em> applications to be started.
+%% If they aren't started, it will try to start them itself before
+%% opening a port to listen. Applications aren't stopped when the
+%% listening socket is closed, though.
%%
%% @see ssl
-module(ranch_ssl).
@@ -131,7 +132,7 @@ messages() -> {ssl, ssl_closed, ssl_error}.
%% @see ssl:listen/2
-spec listen(opts()) -> {ok, ssl:sslsocket()} | {error, atom()}.
listen(Opts) ->
- ranch:require([crypto, public_key, ssl]),
+ ranch:require([crypto, asn1, public_key, ssl]),
true = lists:keymember(cert, 1, Opts)
orelse lists:keymember(certfile, 1, Opts),
Opts2 = ranch:set_option_default(Opts, backlog, 1024),