summaryrefslogtreecommitdiff
path: root/lib/ssl/src/tls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <ingela@erlang.org>2017-11-07 18:34:34 +0100
committerIngela Anderton Andin <ingela@erlang.org>2017-11-09 16:48:30 +0100
commitde3b9cdb8521d7edd524b4e17d1e3f883f832ec0 (patch)
treeec7ca6948bc66a21ab7664fbb072a19d6e3fe2d1 /lib/ssl/src/tls_connection.erl
parent19e938e708bb4823d5deac94fd110b7d3896390a (diff)
downloaderlang-de3b9cdb8521d7edd524b4e17d1e3f883f832ec0.tar.gz
ssl: Countermeasurements for Bleichenbacher attack
Back ported for security reasons. Remove DTLS changes as DTLS is not at all working in OTP 18.
Diffstat (limited to 'lib/ssl/src/tls_connection.erl')
-rw-r--r--lib/ssl/src/tls_connection.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssl/src/tls_connection.erl b/lib/ssl/src/tls_connection.erl
index 93716d31b8..5a70cf96dc 100644
--- a/lib/ssl/src/tls_connection.erl
+++ b/lib/ssl/src/tls_connection.erl
@@ -206,6 +206,7 @@ hello(Hello = #client_hello{client_version = ClientVersion,
ssl_connection:hello({common_client_hello, Type, ServerHelloExt},
State#state{connection_states = ConnectionStates,
negotiated_version = Version,
+ client_hello_version = ClientVersion,
hashsign_algorithm = HashSign,
session = Session,
client_ecc = {EllipticCurves, EcPointFormats},