aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_handshake.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-11-04 16:41:03 +0100
committerIngela Anderton Andin <[email protected]>2013-12-02 09:50:03 +0100
commit95db85ba3581b9b8722239fb1accc8a4a2d6c2e5 (patch)
tree15382f381eb4250fb97c36764979c73d5fad4fe7 /lib/ssl/src/ssl_handshake.erl
parentf606903e2b714721b57d1d73a17d31b02f85ef07 (diff)
downloadotp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.tar.gz
otp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.tar.bz2
otp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.zip
ssl, public_key: Dialyzer fixes
Diffstat (limited to 'lib/ssl/src/ssl_handshake.erl')
-rw-r--r--lib/ssl/src/ssl_handshake.erl13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index d4dd886aab..bf091b4600 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -1045,13 +1045,12 @@ select_session(SuggestedSessionId, CipherSuites, Compressions, Port, #session{ec
{resumed, Resumed}
end.
-supported_ecc(Version) ->
- case tls_v1:ecc_curves(Version) of
- [] ->
- undefined;
- Curves ->
- #elliptic_curves{elliptic_curve_list = Curves}
- end.
+supported_ecc({Major, Minor} = Version) when ((Major == 3) and (Minor >= 1)) orelse (Major > 3) ->
+ Curves = tls_v1:ecc_curves(Version),
+ #elliptic_curves{elliptic_curve_list = Curves};
+supported_ecc(_) ->
+ undefined.
+
%%-------------certificate handling --------------------------------
certificate_types({KeyExchange, _, _, _})