aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_record.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-05 21:01:34 +0000
committerlloyd <[email protected]>2012-01-05 21:01:34 +0000
commit74226be019b1a66f8eae9a6516f2eb28a53fb9e2 (patch)
tree60cb288f4d6b1a5f284d993b0de2bfedf4476420 /src/tls/tls_record.h
parent66665fe98ddfe08a1c12fedb43eabe83532349a2 (diff)
If the maximum fragment extension was negotiated, enforce it. Also
enforce the 2^14 byte plaintext limit in the reader (previously only the 2^14+2048 byte ciphertext size limit was enforced).
Diffstat (limited to 'src/tls/tls_record.h')
-rw-r--r--src/tls/tls_record.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tls/tls_record.h b/src/tls/tls_record.h
index 052fd43d8..8e89b9f8a 100644
--- a/src/tls/tls_record.h
+++ b/src/tls/tls_record.h
@@ -104,7 +104,9 @@ class BOTAN_DLL Record_Reader
bool currently_empty() const { return m_input_queue.size() == 0; }
- Record_Reader() { m_mac = 0; reset(); }
+ void set_maximum_fragment_size(size_t max_fragment);
+
+ Record_Reader();
~Record_Reader() { delete m_mac; }
private: