Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
  • Loading branch information
IngelaAndin committed Nov 10, 2023
2 parents 54e7c03 + f74018f commit d4a4c0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/ssl/src/ssl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
srp_param_type/0,
named_curve/0,
sign_scheme/0,
signature_algs/0,
group/0]).

%% -------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -1108,7 +1109,7 @@ append_cipher_suites(Filters, Suites) ->
(Suites -- Deferred) ++ Deferred.

%%--------------------------------------------------------------------
-spec signature_algs(Description, Version) -> [signature_algs()] when
-spec signature_algs(Description, Version) -> signature_algs() when
Description :: default | all | exclusive,
Version :: protocol_version().

Expand Down Expand Up @@ -1138,9 +1139,9 @@ signature_algs(Description, 'dtlsv1.2') ->
signature_algs(Description, Version) when Description == default;
Description == all;
Description == exclusive->
{error, {signature_algs_not_supported_in_protocol_version, Version}};
signature_algs(Description,_) ->
{error, {badarg, Description}}.
erlang:error({signature_algs_not_supported_in_protocol_version, Version});
signature_algs(Description, Version) ->
erlang:error(badarg, [Description, Version]).

%%--------------------------------------------------------------------
-spec eccs() -> NamedCurves when
Expand Down

0 comments on commit d4a4c0c

Please sign in to comment.