diff options
author | lloyd <[email protected]> | 2011-12-30 20:20:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-30 20:20:42 +0000 |
commit | deb92d7f6d43206c04f332625d6b1e1a2abc444d (patch) | |
tree | 06c331d7f51071750091e013c6f853c015eacd18 /src/tls/tls_record.h | |
parent | 766f5eeb5c99936e7ddcf3e4c82095f087b6e928 (diff) |
Add a function for getting the version number of an active connection.
Add a new callback that is called with the session info when a
handshake completes. Currently only called on the server side as
the client doesn't have session resumption yet.
Rename CipherSuite to TLS_Cipher_Suite.
Diffstat (limited to 'src/tls/tls_record.h')
-rw-r--r-- | src/tls/tls_record.h | 8 |
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; } |