aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_session_key.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-30 02:50:15 +0000
committerlloyd <[email protected]>2010-03-30 02:50:15 +0000
commit2c0cd825b6368f61afdba0eab8c8697d25451787 (patch)
tree2217e60d38aa34d9bf8fde1f3e17bc48d5e8303c /src/ssl/tls_session_key.cpp
parent6d141cd765d840d8bbfdaaa8154494d3c9ecce50 (diff)
Add support for TLS v1.1's per-record random IV. Tested against GnuTLS server.
Diffstat (limited to 'src/ssl/tls_session_key.cpp')
-rw-r--r--src/ssl/tls_session_key.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssl/tls_session_key.cpp b/src/ssl/tls_session_key.cpp
index 83c06ba07..13575adac 100644
--- a/src/ssl/tls_session_key.cpp
+++ b/src/ssl/tls_session_key.cpp
@@ -131,7 +131,7 @@ SessionKeys::SessionKeys(const CipherSuite& suite, Version_Code version,
const MemoryRegion<byte>& c_random,
const MemoryRegion<byte>& s_random)
{
- if(version != SSL_V3 && version != TLS_V10)
+ if(version != SSL_V3 && version != TLS_V10 && version != TLS_V11)
throw Invalid_Argument("SessionKeys: Unknown version code");
const u32bit mac_keylen = output_length_of(suite.mac_algo());