diff options
author | Ingela Anderton Andin <[email protected]> | 2013-11-04 16:41:03 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2013-12-02 09:50:03 +0100 |
commit | 95db85ba3581b9b8722239fb1accc8a4a2d6c2e5 (patch) | |
tree | 15382f381eb4250fb97c36764979c73d5fad4fe7 /lib/ssl/src/dtls_record.erl | |
parent | f606903e2b714721b57d1d73a17d31b02f85ef07 (diff) | |
download | otp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.tar.gz otp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.tar.bz2 otp-95db85ba3581b9b8722239fb1accc8a4a2d6c2e5.zip |
ssl, public_key: Dialyzer fixes
Diffstat (limited to 'lib/ssl/src/dtls_record.erl')
-rw-r--r-- | lib/ssl/src/dtls_record.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ssl/src/dtls_record.erl b/lib/ssl/src/dtls_record.erl index 7959c4d860..b0a7976864 100644 --- a/lib/ssl/src/dtls_record.erl +++ b/lib/ssl/src/dtls_record.erl @@ -296,7 +296,8 @@ connection_state_by_epoch(#connection_states{pending_write = CS}, Epoch, write) CS. %%-------------------------------------------------------------------- -spec set_connection_state_by_epoch(#connection_states{}, - #connection_state{}, read | write) -> ok. + #connection_state{}, read | write) + -> #connection_states{}. %% %% Description: Returns the instance of the connection_state record %% that is defined by the Epoch. @@ -337,7 +338,8 @@ calc_mac_hash(#connection_state{mac_secret = MacSecret, security_parameters = #security_parameters{mac_algorithm = MacAlg}}, Type, Version, Epoch, SeqNo, Fragment) -> Length = erlang:iolist_size(Fragment), - mac_hash(Version, MacAlg, MacSecret, (Epoch bsl 48) + SeqNo, Type, + NewSeq = (Epoch bsl 48) + SeqNo, + mac_hash(Version, MacAlg, MacSecret, NewSeq, Type, Length, Fragment). mac_hash(Version, MacAlg, MacSecret, SeqNo, Type, Length, Fragment) -> |