diff options
author | Jack Lloyd <[email protected]> | 2019-05-24 05:17:59 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-05-24 05:17:59 -0400 |
commit | 78dff743222447cd626c6a7a1d94c5ccd46de02b (patch) | |
tree | 5cfe2f209ee497141857203ffabe191e86d61455 /src/lib/tls/tls_channel.cpp | |
parent | e16ec9353e3aa379b730fdb8d9473bc2cccb4b72 (diff) |
Avoid unnecessary copies during TLS handshake
Diffstat (limited to 'src/lib/tls/tls_channel.cpp')
-rw-r--r-- | src/lib/tls/tls_channel.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/tls/tls_channel.cpp b/src/lib/tls/tls_channel.cpp index b066f649e..9bff836f2 100644 --- a/src/lib/tls/tls_channel.cpp +++ b/src/lib/tls/tls_channel.cpp @@ -441,7 +441,8 @@ void Channel::process_handshake_ccs(const secure_vector<uint8_t>& record, else if(epoch == sequence_numbers().current_read_epoch() - 1) { BOTAN_ASSERT(m_active_state, "Have active state here"); - m_active_state->handshake_io().add_record(unlock(record), + m_active_state->handshake_io().add_record(record.data(), + record.size(), record_type, record_sequence); } @@ -460,7 +461,8 @@ void Channel::process_handshake_ccs(const secure_vector<uint8_t>& record, // May have been created in above conditional if(m_pending_state) { - m_pending_state->handshake_io().add_record(unlock(record), + m_pending_state->handshake_io().add_record(record.data(), + record.size(), record_type, record_sequence); |