aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_record.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/tls_record.h')
-rw-r--r--src/tls/tls_record.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tls/tls_record.h b/src/tls/tls_record.h
index 55cb66034..be9fe6e73 100644
--- a/src/tls/tls_record.h
+++ b/src/tls/tls_record.h
@@ -45,12 +45,14 @@ class BOTAN_DLL Record_Writer
void alert(Alert_Level level, Alert_Type type);
- void set_keys(const CipherSuite& suite,
+ void activate(const TLS_Cipher_Suite& suite,
const SessionKeys& keys,
Connection_Side side);
void set_version(Version_Code version);
+ Version_Code get_version() const;
+
void reset();
void set_maximum_fragment_size(size_t max_fragment);
@@ -90,12 +92,14 @@ class BOTAN_DLL Record_Reader
SecureVector<byte> get_record(byte& msg_type);
- void set_keys(const CipherSuite& suite,
+ void activate(const TLS_Cipher_Suite& suite,
const SessionKeys& keys,
Connection_Side side);
void set_version(Version_Code version);
+ Version_Code get_version() const;
+
void reset();
bool currently_empty() const { return input_queue.size() == 0; }