aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_cipher.erl
diff options
context:
space:
mode:
authorAndreas Schultz <[email protected]>2012-08-15 10:52:39 +0200
committerIngela Anderton Andin <[email protected]>2012-08-22 14:00:46 +0200
commit332716f059f291eba836fb46071a9b3e718f43c0 (patch)
tree5c5724d480e0b932931618883300c2e6009cf923 /lib/ssl/src/ssl_cipher.erl
parent6c53c50ca047dc006af75dd6045e096a4bd97153 (diff)
downloadotp-332716f059f291eba836fb46071a9b3e718f43c0.tar.gz
otp-332716f059f291eba836fb46071a9b3e718f43c0.tar.bz2
otp-332716f059f291eba836fb46071a9b3e718f43c0.zip
ssl: Add Signature Algorithms hello extension from TLS 1.2
This is also avoids triggering some bugs in OpenSSL.
Diffstat (limited to 'lib/ssl/src/ssl_cipher.erl')
-rw-r--r--lib/ssl/src/ssl_cipher.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_cipher.erl b/lib/ssl/src/ssl_cipher.erl
index 86b09b3f32..358972f522 100644
--- a/lib/ssl/src/ssl_cipher.erl
+++ b/lib/ssl/src/ssl_cipher.erl
@@ -606,7 +606,11 @@ hash_size(md5) ->
hash_size(sha) ->
20;
hash_size(sha256) ->
- 32.
+ 32;
+hash_size(sha384) ->
+ 48;
+hash_size(sha512) ->
+ 64.
%% RFC 5246: 6.2.3.2. CBC Block Cipher
%%