aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-04-23 09:35:55 +0200
committerIngela Anderton Andin <[email protected]>2014-04-23 15:56:39 +0200
commit081ee510f1fb1d821a524bd6b8efd20e520add3c (patch)
tree35e619de7f70117e58c399949594ec1656255647 /lib/ssl/src/dtls_connection.erl
parentb4fc84117b6bd1105ca8ccb91f699564ac400dff (diff)
downloadotp-081ee510f1fb1d821a524bd6b8efd20e520add3c.tar.gz
otp-081ee510f1fb1d821a524bd6b8efd20e520add3c.tar.bz2
otp-081ee510f1fb1d821a524bd6b8efd20e520add3c.zip
ssl: Refactor so that there is only one source for the default hashsign values
Also fix DTLS call to supply its corresponding TLS version
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 ec0f408f51..508983ddac 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -208,7 +208,8 @@ hello(Hello = #client_hello{client_version = ClientVersion,
ConnectionStates,
#hello_extensions{ec_point_formats = EcPointFormats,
elliptic_curves = EllipticCurves} = ServerHelloExt} ->
- HashSign = ssl_handshake:select_hashsign(HashSigns, Cert, Version),
+ 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,