diff options
author | Ingela Anderton Andin <[email protected]> | 2016-08-19 09:54:06 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2016-09-05 14:37:27 +0200 |
commit | 147ed05c7fb3a8c4176d8f19fd86454ea9bf9603 (patch) | |
tree | 10c3b8134a5de5a8d35180acfd53490cd3e7ad67 /lib/ssl | |
parent | da0f19e53243e75ec305e3697e7b3028e141b74b (diff) | |
download | otp-147ed05c7fb3a8c4176d8f19fd86454ea9bf9603.tar.gz otp-147ed05c7fb3a8c4176d8f19fd86454ea9bf9603.tar.bz2 otp-147ed05c7fb3a8c4176d8f19fd86454ea9bf9603.zip |
dtls: Add close/5
Diffstat (limited to 'lib/ssl')
-rw-r--r-- | lib/ssl/src/dtls_connection.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl index 0afb02afb3..da7c61cef0 100644 --- a/lib/ssl/src/dtls_connection.erl +++ b/lib/ssl/src/dtls_connection.erl @@ -47,7 +47,7 @@ send_handshake/2, queue_handshake/2, queue_change_cipher/2]). %% Alert and close handling -%%-export([%%send_alert/2, close/5]). +-export([send_alert/2, close/5]). %% Data handling @@ -133,6 +133,12 @@ send_alert(Alert, #state{negotiated_version = Version, Transport:send(Socket, BinMsg), State0#state{connection_states = ConnectionStates}. +close(downgrade, _,_,_,_) -> + ok; +%% Other +close(_, Socket, Transport, _,_) -> + Transport:close(Socket). + reinit_handshake_data(#state{protocol_buffers = Buffers} = State) -> State#state{premaster_secret = undefined, public_key_info = undefined, |