diff options
author | lloyd <[email protected]> | 2011-12-23 20:23:03 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-23 20:23:03 +0000 |
commit | f5c863cf97ea11876acad3c46fffca23685698aa (patch) | |
tree | 5537f5c843602f136f6eb1835d8679c9ae67009e /src/tls/tls_session_key.h | |
parent | 61d461d0a5fb63c3aee906c76b4aefe3335a7591 (diff) |
Initial hooks for session resumption
Diffstat (limited to 'src/tls/tls_session_key.h')
-rw-r--r-- | src/tls/tls_session_key.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/tls/tls_session_key.h b/src/tls/tls_session_key.h index 51397984b..f0e185bd8 100644 --- a/src/tls/tls_session_key.h +++ b/src/tls/tls_session_key.h @@ -20,20 +20,25 @@ namespace Botan { class BOTAN_DLL SessionKeys { public: - SymmetricKey client_cipher_key() const; - SymmetricKey server_cipher_key() const; + SymmetricKey client_cipher_key() const { return c_cipher; } + SymmetricKey server_cipher_key() const { return s_cipher; } - SymmetricKey client_mac_key() const; - SymmetricKey server_mac_key() const; + SymmetricKey client_mac_key() const { return c_mac; } + SymmetricKey server_mac_key() const { return s_mac; } - InitializationVector client_iv() const; - InitializationVector server_iv() const; + InitializationVector client_iv() const { return c_iv; } + InitializationVector server_iv() const { return s_iv; } - SecureVector<byte> master_secret() const; + SecureVector<byte> master_secret() const { return master_sec; } SessionKeys() {} - SessionKeys(const CipherSuite&, Version_Code, const MemoryRegion<byte>&, - const MemoryRegion<byte>&, const MemoryRegion<byte>&); + + SessionKeys(const CipherSuite& suite, + Version_Code version, + const MemoryRegion<byte>& pre_master, + const MemoryRegion<byte>& client_random, + const MemoryRegion<byte>& server_random); + private: SymmetricKey ssl3_keygen(size_t, const MemoryRegion<byte>&, const MemoryRegion<byte>&, |