aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/dtls_handshake.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2017-03-06 15:05:59 +0100
committerIngela Anderton Andin <[email protected]>2017-03-06 16:00:32 +0100
commitd795732ea0fdd669a0b6dc60b199374b432c7cfb (patch)
treef299e228c83ef4e48a2d58c4386ce32c6f370ae3 /lib/ssl/src/dtls_handshake.erl
parent2117e29474712445725b30b8b5a8a53b5f99b6a0 (diff)
downloadotp-d795732ea0fdd669a0b6dc60b199374b432c7cfb.tar.gz
otp-d795732ea0fdd669a0b6dc60b199374b432c7cfb.tar.bz2
otp-d795732ea0fdd669a0b6dc60b199374b432c7cfb.zip
dtls: Correct dialyzer spec and postpone inclusion of test
The new_options_in_accept test is not working yet, however DTLS is still work in progress and we want to make a progress merge to avoid merge conflicts with other progress of the ssl application.
Diffstat (limited to 'lib/ssl/src/dtls_handshake.erl')
-rw-r--r--lib/ssl/src/dtls_handshake.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_handshake.erl b/lib/ssl/src/dtls_handshake.erl
index 711c76c8ef..fd1f9698fe 100644
--- a/lib/ssl/src/dtls_handshake.erl
+++ b/lib/ssl/src/dtls_handshake.erl
@@ -136,9 +136,11 @@ handshake_bin([Type, Length, Data], Seq) ->
%%--------------------------------------------------------------------
-spec get_dtls_handshake(dtls_record:dtls_version(), binary(), #protocol_buffers{}) ->
- {[{dtls_handshake(), binary()}], #protocol_buffers{}} | {more_data, #protocol_buffers{}}.
+ {[dtls_handshake()], #protocol_buffers{}}.
%%
-%% Description: ...
+%% Description: Given buffered and new data from dtls_record, collects
+%% and returns it as a list of handshake messages, also returns
+%% possible leftover data in the new "protocol_buffers".
%%--------------------------------------------------------------------
get_dtls_handshake(Version, Fragment, ProtocolBuffers) ->
handle_fragments(Version, Fragment, ProtocolBuffers, []).