aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_record.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-30 18:51:01 +0000
committerlloyd <[email protected]>2011-12-30 18:51:01 +0000
commit766f5eeb5c99936e7ddcf3e4c82095f087b6e928 (patch)
tree17b95459926b1064b538889a1b7c732ff2298470 /src/tls/tls_record.h
parent07b11b4b3d9c7ef289050252c29bc8174d102148 (diff)
Add support for the maximum fragment length extension. No hooks for it
on the client side at the moment. Tested with gnutls-cli --recordsize. Save the fragment size and the secure renegotiation flags in the session state.
Diffstat (limited to 'src/tls/tls_record.h')
-rw-r--r--src/tls/tls_record.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/tls/tls_record.h b/src/tls/tls_record.h
index 51a7cd310..55cb66034 100644
--- a/src/tls/tls_record.h
+++ b/src/tls/tls_record.h
@@ -53,22 +53,23 @@ class BOTAN_DLL Record_Writer
void reset();
- Record_Writer(std::tr1::function<void (const byte[], size_t)> output_fn,
- size_t max_fragment = MAX_PLAINTEXT_SIZE);
+ void set_maximum_fragment_size(size_t max_fragment);
- ~Record_Writer() { delete mac; }
+ Record_Writer(std::tr1::function<void (const byte[], size_t)> output_fn);
+
+ ~Record_Writer() { delete m_mac; }
private:
void send_record(byte type, const byte input[], size_t length);
- std::tr1::function<void (const byte[], size_t)> output_fn;
+ std::tr1::function<void (const byte[], size_t)> m_output_fn;
- Pipe cipher;
- MessageAuthenticationCode* mac;
+ Pipe m_cipher;
+ MessageAuthenticationCode* m_mac;
- size_t block_size, mac_size, iv_size, max_fragment;
+ size_t m_block_size, m_mac_size, m_iv_size, m_max_fragment;
- u64bit seq_no;
- byte major, minor;
+ u64bit m_seq_no;
+ byte m_major, m_minor;
};
/**