aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_cipher.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2012-08-23 15:01:40 +0200
committerIngela Anderton Andin <[email protected]>2012-08-23 15:01:40 +0200
commitf5c54053e4d99c7c6eb1163047632d16c1fd5f19 (patch)
tree5ece82a994b212551373fab18a58b0209baa2893 /lib/ssl/src/ssl_cipher.erl
parentf87936b28199e4ed6e67ff188996108776fbfb1f (diff)
downloadotp-f5c54053e4d99c7c6eb1163047632d16c1fd5f19.tar.gz
otp-f5c54053e4d99c7c6eb1163047632d16c1fd5f19.tar.bz2
otp-f5c54053e4d99c7c6eb1163047632d16c1fd5f19.zip
ssl: Clean up of code thanks to dialyzer
Diffstat (limited to 'lib/ssl/src/ssl_cipher.erl')
-rw-r--r--lib/ssl/src/ssl_cipher.erl12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/ssl/src/ssl_cipher.erl b/lib/ssl/src/ssl_cipher.erl
index 80df8fd5cb..567690a413 100644
--- a/lib/ssl/src/ssl_cipher.erl
+++ b/lib/ssl/src/ssl_cipher.erl
@@ -606,11 +606,13 @@ hash_size(md5) ->
hash_size(sha) ->
20;
hash_size(sha256) ->
- 32;
-hash_size(sha384) ->
- 48;
-hash_size(sha512) ->
- 64.
+ 32.
+%% Currently no supported cipher suites defaults to sha384 or sha512
+%% so these clauses are not needed at the moment.
+%% hash_size(sha384) ->
+%% 48;
+%% hash_size(sha512) ->
+%% 64.
%% RFC 5246: 6.2.3.2. CBC Block Cipher
%%