aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_channel.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-09-06 17:22:24 +0000
committerlloyd <[email protected]>2012-09-06 17:22:24 +0000
commitb1be53d2b45638f5fb78b5c719e82f0eada247fd (patch)
treee12fe9aed5dacd109d85e86c1255c5d3c00196ae /src/tls/tls_channel.h
parente0f096221da84d90b169917ba6b2b1d4365a13db (diff)
Inline Record_Writer to Channel
Diffstat (limited to 'src/tls/tls_channel.h')
-rw-r--r--src/tls/tls_channel.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tls/tls_channel.h b/src/tls/tls_channel.h
index e0b19758a..3b53d3539 100644
--- a/src/tls/tls_channel.h
+++ b/src/tls/tls_channel.h
@@ -164,7 +164,6 @@ class BOTAN_DLL Channel
RandomNumberGenerator& m_rng;
Session_Manager& m_session_manager;
- Record_Writer m_writer;
private:
Record_Reader m_reader;
protected:
@@ -173,7 +172,18 @@ class BOTAN_DLL Channel
Secure_Renegotiation_State m_secure_renegotiation;
private:
+ void send_record(byte type, const byte input[], size_t length);
+
+ void write_record(byte type, const byte input[], size_t length);
+
std::function<void (const byte[], size_t, Alert)> m_proc_fn;
+ std::function<void (const byte[], size_t)> m_output_fn;
+
+ std::vector<byte> m_writebuf;
+ std::unique_ptr<Connection_Cipher_State> m_write_cipherstate;
+ u64bit m_write_seq_no = 0;
+
+ size_t m_max_fragment = MAX_PLAINTEXT_SIZE;
bool m_peer_supports_heartbeats = false;
bool m_heartbeat_sending_allowed = false;