summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rebar_api.erl6
-rw-r--r--src/rebar_pkg_resource.erl2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/rebar_api.erl b/src/rebar_api.erl
index 45083df..ec9f85e 100644
--- a/src/rebar_api.erl
+++ b/src/rebar_api.erl
@@ -11,7 +11,8 @@
wordsize/0,
add_deps_to_path/1,
restore_code_path/1,
- processing_base_dir/1]).
+ processing_base_dir/1,
+ ssl_opts/1]).
-export_type([rebar_dict/0, rebar_digraph/0]).
@@ -63,3 +64,6 @@ restore_code_path(State) ->
processing_base_dir(State) ->
rebar_dir:processing_base_dir(State).
+
+ssl_opts(Url) ->
+ rebar_pkg_resource:ssl_opts(Url).
diff --git a/src/rebar_pkg_resource.erl b/src/rebar_pkg_resource.erl
index 62208a6..50533a5 100644
--- a/src/rebar_pkg_resource.erl
+++ b/src/rebar_pkg_resource.erl
@@ -9,6 +9,8 @@
,needs_update/2
,make_vsn/1]).
+-export([ssl_opts/1]).
+
-include("rebar.hrl").
-include_lib("public_key/include/OTP-PUB-KEY.hrl").