aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-02-08 20:19:30 +0100
committerIngela Anderton Andin <[email protected]>2019-02-08 20:19:30 +0100
commit10872a78891ca04916ca041148ba2119d3b61bdc (patch)
tree109b4358a985d31aee4e5f0076d10f7ff3105591 /lib/ssl/src/dtls_connection.erl
parentdcce921e494f4a54341da54c1c8f98ae5941ba00 (diff)
downloadotp-10872a78891ca04916ca041148ba2119d3b61bdc.tar.gz
otp-10872a78891ca04916ca041148ba2119d3b61bdc.tar.bz2
otp-10872a78891ca04916ca041148ba2119d3b61bdc.zip
ssl: Move key_algorithm to handshake_env
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index fd617bce2a..19c6008374 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -865,11 +865,11 @@ handle_client_hello(#client_hello{client_version = ClientVersion} = Hello,
static_env = #static_env{port = Port,
session_cache = Cache,
session_cache_cb = CacheCb},
- handshake_env = #handshake_env{renegotiation = {Renegotiation, _},
+ handshake_env = #handshake_env{kex_algorithm = KeyExAlg,
+ renegotiation = {Renegotiation, _},
negotiated_protocol = CurrentProtocol} = HsEnv,
connection_env = CEnv,
session = #session{own_certificate = Cert} = Session0,
- kex_algorithm = KeyExAlg,
ssl_options = SslOpts} = State0) ->
case dtls_handshake:hello(Hello, SslOpts, {Port, Session0, Cache, CacheCb,