aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_connection.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2014-03-24 15:48:43 +0100
committerIngela Anderton Andin <[email protected]>2014-03-25 16:17:05 +0100
commitc2aab88300a61960a38b6ca33d64c9fae39989b3 (patch)
tree854bdf69592c89045b31690a2ba4d6d6af43e83c /lib/ssl/src/dtls_connection.erl
parent8af48b0b2c168ab096dec7d6efae1661d40968fc (diff)
downloadotp-c2aab88300a61960a38b6ca33d64c9fae39989b3.tar.gz
otp-c2aab88300a61960a38b6ca33d64c9fae39989b3.tar.bz2
otp-c2aab88300a61960a38b6ca33d64c9fae39989b3.zip
ssl: Avoid dialyzer warnings in dtls code
Even if DTLS is not finished, e.i. not runnable yet we want to phase in the code together with refactoring of TLS code, but without introducing warnings in the release.
Diffstat (limited to 'lib/ssl/src/dtls_connection.erl')
-rw-r--r--lib/ssl/src/dtls_connection.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_connection.erl b/lib/ssl/src/dtls_connection.erl
index 823bed14fd..57f8dd86d3 100644
--- a/lib/ssl/src/dtls_connection.erl
+++ b/lib/ssl/src/dtls_connection.erl
@@ -341,8 +341,10 @@ code_change(_OldVsn, StateName, State, _Extra) ->
%%% Internal functions
%%--------------------------------------------------------------------
encode_handshake(Handshake, Version, ConnectionStates0, Hist0) ->
- {Handshake, FragmentedHandshake} = dtls_handshake:encode_handshake(Handshake, Version),
- Hist = ssl_handshake:update_handshake_history(Hist0, Handshake),
+ Seq = sequence(ConnectionStates0),
+ {EncHandshake, FragmentedHandshake} = dtls_handshake:encode_handshake(Handshake, Version,
+ Seq),
+ Hist = ssl_handshake:update_handshake_history(Hist0, EncHandshake),
{Encoded, ConnectionStates} =
dtls_record:encode_handshake(FragmentedHandshake,
Version, ConnectionStates0),
@@ -526,3 +528,6 @@ get_timeout(_) -> %% Place holder
next_state_connection(_, State) -> %% Place holder
{next_state, connection, State, get_timeout(State)}.
+sequence(_) ->
+ %%TODO real imp
+ 1.