aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-04-24 11:14:39 +0200
committerIngela Anderton Andin <[email protected]>2014-04-24 11:14:39 +0200
commita6964711c50815a4e4824e891ffc4a06fd061970 (patch)
tree86fbaeb8b6b3edb5c5f628694215abfa8bd1fcbe /lib/ssl/src/dtls_connection.erl
parent26853eca2462973b347f12cd3a2e713a169964d7 (diff)
parent081ee510f1fb1d821a524bd6b8efd20e520add3c (diff)
downloadotp-a6964711c50815a4e4824e891ffc4a06fd061970.tar.gz
otp-a6964711c50815a4e4824e891ffc4a06fd061970.tar.bz2
otp-a6964711c50815a4e4824e891ffc4a06fd061970.zip
Merge branch 'ia/pr/340' into maint
* ia/pr/340: ssl: Refactor so that there is only one source for the default hashsign values ssl: always pass negotiated version when selecting hashsign ssl: TLSv1.2: proper default sign algo for RSA
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index 57f8dd86d3..508983ddac 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -202,13 +202,14 @@ hello(Hello = #client_hello{client_version = ClientVersion,
session_cache = Cache,
session_cache_cb = CacheCb,
ssl_options = SslOpts}) ->
- HashSign = ssl_handshake:select_hashsign(HashSigns, Cert),
case dtls_handshake:hello(Hello, SslOpts, {Port, Session0, Cache, CacheCb,
ConnectionStates0, Cert}, Renegotiation) of
{Version, {Type, Session},
ConnectionStates,
#hello_extensions{ec_point_formats = EcPointFormats,
elliptic_curves = EllipticCurves} = ServerHelloExt} ->
+ HashSign = ssl_handshake:select_hashsign(HashSigns, Cert,
+ dtls_v1:corresponding_tls_version(Version)),
ssl_connection:hello({common_client_hello, Type, ServerHelloExt, HashSign},
State#state{connection_states = ConnectionStates,
negotiated_version = Version,