aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_record.hrl
diff options
context:
space:
mode:
authorAndreas Schultz <[email protected]>2012-04-06 02:56:08 +0200
committerIngela Anderton Andin <[email protected]>2012-08-22 14:00:43 +0200
commitfb3b15a18e507859eb77e20ec1e9bed788e88908 (patch)
tree5a0b3b47564c11a352cb165c68d14a9e2f60b834 /lib/ssl/src/ssl_record.hrl
parent571133751287d93598dc90fe90b58ab4580f4836 (diff)
downloadotp-fb3b15a18e507859eb77e20ec1e9bed788e88908.tar.gz
otp-fb3b15a18e507859eb77e20ec1e9bed788e88908.tar.bz2
otp-fb3b15a18e507859eb77e20ec1e9bed788e88908.zip
ssl: Consider TLS version when building cipher blocks
With TLS 1.2 the handling of the IV in cipher blocks changed. This prepares ssl_cipher:cipher/5 for that change by passing the TLS version into it and allowing generic_block_cipher_from_bin/4 to overload the IV.
Diffstat (limited to 'lib/ssl/src/ssl_record.hrl')
-rw-r--r--lib/ssl/src/ssl_record.hrl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_record.hrl b/lib/ssl/src/ssl_record.hrl
index 282d642138..3d22fa6acb 100644
--- a/lib/ssl/src/ssl_record.hrl
+++ b/lib/ssl/src/ssl_record.hrl
@@ -176,7 +176,8 @@
content, % opaque content[TLSCompressed.length];
mac, % opaque MAC[CipherSpec.hash_size];
padding, % unit 8 padding[GenericBlockCipher.padding_length];
- padding_length % uint8 padding_length;
+ padding_length, % uint8 padding_length;
+ next_iv % opaque IV[SecurityParameters.record_iv_length];
}).
-endif. % -ifdef(ssl_record).