aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_record.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-06 15:32:21 +0000
committerlloyd <[email protected]>2012-01-06 15:32:21 +0000
commitab5ff573a861b3371aa4c9dd2c2fee675a5165a6 (patch)
tree4958f26a74d7e2558efbd0dffbe661f87fa267dc /src/tls/tls_record.h
parent098a3fe831d567f6a143679872de72a7b210d24a (diff)
Remove the version getter in TLS_Channel - caller should use the
handshake callback info instead. Clean up the buffer consumption code in the record reader.
Diffstat (limited to 'src/tls/tls_record.h')
-rw-r--r--src/tls/tls_record.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/tls/tls_record.h b/src/tls/tls_record.h
index f4f3e697f..9428474b3 100644
--- a/src/tls/tls_record.h
+++ b/src/tls/tls_record.h
@@ -49,8 +49,6 @@ class BOTAN_DLL Record_Writer
void set_version(Version_Code version);
- Version_Code get_version() const;
-
void reset();
void set_maximum_fragment_size(size_t max_fragment);
@@ -105,8 +103,6 @@ class BOTAN_DLL Record_Reader
void set_version(Version_Code version);
- Version_Code get_version() const;
-
void reset();
void set_maximum_fragment_size(size_t max_fragment);
@@ -118,10 +114,10 @@ class BOTAN_DLL Record_Reader
Record_Reader(const Record_Reader&) {}
Record_Reader& operator=(const Record_Reader&) { return (*this); }
- void consume_input(const byte*& input,
- size_t& input_size,
- size_t& input_consumed,
- size_t desired);
+ size_t fill_buffer_to(const byte*& input,
+ size_t& input_size,
+ size_t& input_consumed,
+ size_t desired);
MemoryVector<byte> m_readbuf;
size_t m_readbuf_pos;