summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2021-03-18 10:23:46 +0100
committerLoïc Hoguin <[email protected]>2021-03-18 10:23:46 +0100
commitc482e1c602a964d54d2398f43a0e14b1cd63cce3 (patch)
tree12654bc2ead08b737ed6e939c4f34b18babb369b
parent8a7a872cf47811a406f61d4121465bf9a6fa8086 (diff)
downloadct_helper-c482e1c602a964d54d2398f43a0e14b1cd63cce3.tar.gz
ct_helper-c482e1c602a964d54d2398f43a0e14b1cd63cce3.tar.bz2
ct_helper-c482e1c602a964d54d2398f43a0e14b1cd63cce3.zip
Fix Dialyzer warnings
-rw-r--r--src/ct_helper.erl2
-rw-r--r--src/ct_helper_error_h.erl5
-rw-r--r--src/erl_make_certs.erl2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/ct_helper.erl b/src/ct_helper.erl
index 8e9d6d1..ff6c3d7 100644
--- a/src/ct_helper.erl
+++ b/src/ct_helper.erl
@@ -232,7 +232,7 @@ make_certs_in_ets() ->
%% them.
{versions, ['tlsv1.2']}
],
- Pid = spawn(fun() -> receive after infinity -> ok end end),
+ Pid = spawn(fun() -> receive shutdown -> ok after infinity -> ok end end),
?MODULE = ets:new(?MODULE, [ordered_set, public, named_table,
{heir, Pid, undefined}]),
ets:insert(?MODULE, {cert_opts, CertOpts}),
diff --git a/src/ct_helper_error_h.erl b/src/ct_helper_error_h.erl
index 796e07a..2cf88c8 100644
--- a/src/ct_helper_error_h.erl
+++ b/src/ct_helper_error_h.erl
@@ -156,9 +156,10 @@ code_change(_, State, _) ->
%% Internal.
write_event(Event) ->
- error_logger_tty_h:write_event(
+ _ = error_logger_tty_h:write_event(
{erlang:universaltime(), Event},
- io).
+ io),
+ ok.
count_args("]" ++ _, N, 0) ->
N;
diff --git a/src/erl_make_certs.erl b/src/erl_make_certs.erl
index dfa9955..884230d 100644
--- a/src/erl_make_certs.erl
+++ b/src/erl_make_certs.erl
@@ -194,7 +194,7 @@ issuer(true, Opts, SubjectKey) ->
issuer({Issuer, IssuerKey}, _Opts, _SubjectKey) when is_binary(Issuer) ->
{issuer_der(Issuer), decode_key(IssuerKey)};
issuer({File, IssuerKey}, _Opts, _SubjectKey) when is_list(File) ->
- {ok, [{cert, Cert, _}|_]} = pem_to_der(File),
+ [{'Certificate', Cert, _}|_] = pem_to_der(File),
{issuer_der(Cert), decode_key(IssuerKey)}.
issuer_der(Issuer) ->