From b1be53d2b45638f5fb78b5c719e82f0eada247fd Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 6 Sep 2012 17:22:24 +0000 Subject: Inline Record_Writer to Channel --- src/tls/tls_channel.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/tls/tls_channel.h') 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 m_proc_fn; + std::function m_output_fn; + + std::vector m_writebuf; + std::unique_ptr 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; -- cgit v1.2.3