aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-10-11 20:07:49 +0200
committerLoïc Hoguin <[email protected]>2012-10-11 20:13:23 +0200
commitaeb86e70c13648235d7d73ed596b344da880685d (patch)
treec9d8e530de883d457db23c10e3a722ae532bef57
parent9facad92459d7277fd7ba510fc769d95a0498fab (diff)
downloadcowboy-aeb86e70c13648235d7d73ed596b344da880685d.tar.gz
cowboy-aeb86e70c13648235d7d73ed596b344da880685d.tar.bz2
cowboy-aeb86e70c13648235d7d73ed596b344da880685d.zip
Add crypto into the required applications
As suggested by @prof3ta.
-rw-r--r--src/cowboy.app.src3
-rw-r--r--src/cowboy_websocket.erl4
-rw-r--r--test/http_SUITE.erl4
-rw-r--r--test/ws_SUITE.erl2
4 files changed, 6 insertions, 7 deletions
diff --git a/src/cowboy.app.src b/src/cowboy.app.src
index e70a65f..b68ef14 100644
--- a/src/cowboy.app.src
+++ b/src/cowboy.app.src
@@ -20,7 +20,8 @@
{applications, [
kernel,
stdlib,
- ranch
+ ranch,
+ crypto
]},
{mod, {cowboy_app, []}},
{env, []}
diff --git a/src/cowboy_websocket.erl b/src/cowboy_websocket.erl
index dcd3008..bc88011 100644
--- a/src/cowboy_websocket.erl
+++ b/src/cowboy_websocket.erl
@@ -13,10 +13,6 @@
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
%% @doc WebSocket protocol implementation.
-%%
-%% When using websockets, make sure that the crypto application is
-%% included in your release. If you are not using releases then there
-%% is no need for concern as crypto is already included.
-module(cowboy_websocket).
%% API.
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index 2459d5e..4820f89 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -128,6 +128,7 @@ groups() ->
init_per_suite(Config) ->
application:start(inets),
+ application:start(crypto),
application:start(ranch),
application:start(cowboy),
Config.
@@ -135,6 +136,7 @@ init_per_suite(Config) ->
end_per_suite(_Config) ->
application:stop(cowboy),
application:stop(ranch),
+ application:stop(crypto),
application:stop(inets),
ok.
@@ -159,7 +161,6 @@ init_per_group(https, Config) ->
{password, "cowboy"}
],
Config1 = init_static_dir(Config),
- application:start(crypto),
application:start(public_key),
application:start(ssl),
{ok, _} = cowboy:start_https(https, 100, Opts ++ [{port, Port}], [
@@ -199,7 +200,6 @@ end_per_group(https, Config) ->
cowboy:stop_listener(https),
application:stop(ssl),
application:stop(public_key),
- application:stop(crypto),
end_static_dir(Config),
ok;
end_per_group(http, Config) ->
diff --git a/test/ws_SUITE.erl b/test/ws_SUITE.erl
index b732eb8..0c98df0 100644
--- a/test/ws_SUITE.erl
+++ b/test/ws_SUITE.erl
@@ -33,6 +33,7 @@ groups() ->
init_per_suite(Config) ->
application:start(inets),
+ application:start(crypto),
application:start(ranch),
application:start(cowboy),
Config.
@@ -40,6 +41,7 @@ init_per_suite(Config) ->
end_per_suite(_Config) ->
application:stop(cowboy),
application:stop(ranch),
+ application:stop(crypto),
application:stop(inets),
ok.