aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-12-14 01:48:56 +0000
committerlloyd <[email protected]>2012-12-14 01:48:56 +0000
commit49933407b8b045bb9a60264631767048b71e8a74 (patch)
tree76d02c2742035afd17a34b06495fa15c17c47f5f /src
parentb0164f672c53ba10cf24a5f5a502d9aac4746161 (diff)
Don't need to pass the sequence numbers struct in here, all we need is
the value we want to use this time.
Diffstat (limited to 'src')
-rw-r--r--src/tls/tls_channel.cpp2
-rw-r--r--src/tls/tls_record.cpp4
-rw-r--r--src/tls/tls_record.h2
3 files changed, 3 insertions, 5 deletions
diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp
index 6bbf60a24..53f989f9f 100644
--- a/src/tls/tls_channel.cpp
+++ b/src/tls/tls_channel.cpp
@@ -437,7 +437,7 @@ void Channel::write_record(Connection_Cipher_State* cipher_state,
input,
length,
record_version,
- sequence_numbers(),
+ sequence_numbers().next_write_sequence(),
cipher_state,
m_rng);
diff --git a/src/tls/tls_record.cpp b/src/tls/tls_record.cpp
index 0557c1796..a030d479a 100644
--- a/src/tls/tls_record.cpp
+++ b/src/tls/tls_record.cpp
@@ -81,7 +81,7 @@ Connection_Cipher_State::Connection_Cipher_State(Protocol_Version version,
void write_record(std::vector<byte>& output,
byte msg_type, const byte msg[], size_t msg_length,
Protocol_Version version,
- Connection_Sequence_Numbers& sequence_numbers,
+ u64bit msg_sequence,
Connection_Cipher_State* cipherstate,
RandomNumberGenerator& rng)
{
@@ -91,8 +91,6 @@ void write_record(std::vector<byte>& output,
output.push_back(version.major_version());
output.push_back(version.minor_version());
- const u64bit msg_sequence = sequence_numbers.next_write_sequence();
-
if(version.is_datagram_protocol())
{
for(size_t i = 0; i != 8; ++i)
diff --git a/src/tls/tls_record.h b/src/tls/tls_record.h
index bc86600fa..23d38ad0c 100644
--- a/src/tls/tls_record.h
+++ b/src/tls/tls_record.h
@@ -138,7 +138,7 @@ class Record
void write_record(std::vector<byte>& write_buffer,
byte msg_type, const byte msg[], size_t msg_length,
Protocol_Version version,
- Connection_Sequence_Numbers& sequence_numbers,
+ u64bit msg_sequence,
Connection_Cipher_State* cipherstate,
RandomNumberGenerator& rng);