aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-05-09 09:26:32 +0200
committerIngela Anderton Andin <[email protected]>2016-05-09 09:26:32 +0200
commita658b1a5ac41b3f5cb95dae263e908ebfbfddf6e (patch)
tree3652db245a97ebdef69ccb00477227c9785cef48 /lib/ssl/src/ssl_connection.erl
parent87d869dd7b8711d4a43aaaf9a876df16f4f4f5b9 (diff)
parent8da6f7108cc9a49e7d7ccb07fa6382e293b19a4a (diff)
downloadotp-a658b1a5ac41b3f5cb95dae263e908ebfbfddf6e.tar.gz
otp-a658b1a5ac41b3f5cb95dae263e908ebfbfddf6e.tar.bz2
otp-a658b1a5ac41b3f5cb95dae263e908ebfbfddf6e.zip
Merge branch 'kennethlakin/tls-use-negotiated-prf/PR-1042/OTP-13546'
* kennethlakin/tls-use-negotiated-prf/PR-1042/OTP-13546: ssl: Use cipher suite's PRF in prf/5
Diffstat (limited to 'lib/ssl/src/ssl_connection.erl')
-rw-r--r--lib/ssl/src/ssl_connection.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index a7657c829a..26c371a8ea 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -927,7 +927,8 @@ handle_call({prf, Secret, Label, Seed, WantedLength}, From, _,
SecParams = ConnectionState#connection_state.security_parameters,
#security_parameters{master_secret = MasterSecret,
client_random = ClientRandom,
- server_random = ServerRandom} = SecParams,
+ server_random = ServerRandom,
+ prf_algorithm = PRFAlgorithm} = SecParams,
Reply = try
SecretToUse = case Secret of
_ when is_binary(Secret) -> Secret;
@@ -938,7 +939,7 @@ handle_call({prf, Secret, Label, Seed, WantedLength}, From, _,
(client_random, Acc) -> [ClientRandom|Acc];
(server_random, Acc) -> [ServerRandom|Acc]
end, [], Seed)),
- ssl_handshake:prf(Version, SecretToUse, Label, SeedToUse, WantedLength)
+ ssl_handshake:prf(Version, PRFAlgorithm, SecretToUse, Label, SeedToUse, WantedLength)
catch
exit:_ -> {error, badarg};
error:Reason -> {error, Reason}